Remove layout for Label and Entry because of some issues.
authorarosis <jh0506.yun@samsung.com>
Mon, 31 Jul 2017 09:21:23 +0000 (18:21 +0900)
committerarosis <jh0506.yun@samsung.com>
Mon, 31 Jul 2017 09:33:20 +0000 (18:33 +0900)
Change-Id: I04bc7a330ba485e94f4228d2d8b530e0b5f5485c
Signed-off-by: arosis <jh0506.yun@samsung.com>
src/ElmSharp/ElmSharp/Entry.cs
src/ElmSharp/ElmSharp/Label.cs

index 67c7ff9..50f3c4a 100755 (executable)
@@ -754,20 +754,6 @@ namespace ElmSharp
         }
 
         /// <summary>
-        /// Sets the color of color class for a given widget.
-        /// </summary>
-        /// <param name="part">The name of color class.</param>
-        /// <param name="color">The struct of color</param>
-        public override void SetPartColor(string part, Color color)
-        {
-            IntPtr handle = (part == "bg") ? Handle : RealHandle;
-            Interop.Elementary.elm_object_color_class_color_set(handle, part, color.R * color.A / 255,
-                                                                                color.G * color.A / 255,
-                                                                                color.B * color.A / 255,
-                                                                                color.A);
-        }
-
-        /// <summary>
         /// Forces calculation of the entry size and text layouting.
         /// </summary>
         public void ForceCalculation()
@@ -1033,13 +1019,7 @@ namespace ElmSharp
 
         protected override IntPtr CreateHandle(EvasObject parent)
         {
-            IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
-            Interop.Elementary.elm_layout_theme_set(handle, "layout", "background", "default");
-
-            RealHandle = Interop.Elementary.elm_entry_add(handle);
-            Interop.Elementary.elm_object_part_content_set(handle, "elm.swallow.content", RealHandle);
-
-            return handle;
+            return Interop.Elementary.elm_entry_add(parent.Handle);
         }
     }
 }
\ No newline at end of file
index 3a0b012..12aae07 100755 (executable)
@@ -183,14 +183,8 @@ namespace ElmSharp
         /// <param name="parent">EvasObject</param>
         /// <returns>The new object, otherwise null if it cannot be created</returns>
         protected override IntPtr CreateHandle(EvasObject parent)
-        {
-            IntPtr handle = Interop.Elementary.elm_layout_add(parent.Handle);
-            Interop.Elementary.elm_layout_theme_set(handle, "layout", "elm_widget", "default");
-
-            RealHandle = Interop.Elementary.elm_label_add(handle);
-            Interop.Elementary.elm_object_part_content_set(handle, "elm.swallow.content", RealHandle);
-
-            return handle;
+        {            
+            return Interop.Elementary.elm_label_add(parent.Handle);
         }
     }