Do not use layout for Label and Entry. 46/115646/1
authorKangho Hur <kangho.hur@samsung.com>
Tue, 21 Feb 2017 02:13:26 +0000 (11:13 +0900)
committerKangho Hur <kangho.hur@samsung.com>
Tue, 21 Feb 2017 02:13:26 +0000 (11:13 +0900)
- It will be fixed if some bugs are fixed.
- As a result, with this change, Opacity property is not available in Label and Entry.

Change-Id: I52cb7953873483922e52b6e51d2b3b78e342acba

ElmSharp/ElmSharp/Entry.cs [changed mode: 0755->0644]
ElmSharp/ElmSharp/Label.cs [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index 5647f03..83a7e1b
@@ -305,13 +305,8 @@ 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", "elm_widget", "default");
-
-            RealHandle = Interop.Elementary.elm_entry_add(handle);
-            Interop.Elementary.elm_object_part_content_set(handle, "elm.swallow.content", RealHandle);
-
-            return handle;
+            //TODO: Fix this to use layout
+            return Interop.Elementary.elm_entry_add(parent.Handle);
         }
     }
 }
old mode 100755 (executable)
new mode 100644 (file)
index 1bcb5b3..6c30010
@@ -100,13 +100,8 @@ 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", "elm_widget", "default");
-
-            RealHandle = Interop.Elementary.elm_label_add(handle);
-            Interop.Elementary.elm_object_part_content_set(handle, "elm.swallow.content", RealHandle);
-
-            return handle;
+            //TODO: Fix this to use layout
+            return Interop.Elementary.elm_label_add(parent.Handle);
         }
     }