Merge "Do not use layout for Label and Entry." into tizen
authorJeonghyun Yun <jh0506.yun@samsung.com>
Tue, 21 Feb 2017 04:51:29 +0000 (20:51 -0800)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Tue, 21 Feb 2017 04:51:29 +0000 (20:51 -0800)
src/ElmSharp/ElmSharp/Entry.cs [changed mode: 0755->0644]
src/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);
         }
     }