Do not use layout for button 25/121725/1
authorSungtaek Hong <sth253.hong@samsung.com>
Tue, 28 Mar 2017 13:35:44 +0000 (22:35 +0900)
committerSungtaek Hong <sth253.hong@samsung.com>
Tue, 28 Mar 2017 13:35:47 +0000 (22:35 +0900)
    - It will be fixed if some bugs are fixed.
    - Opacity will temporarily supported by clipper in theme.
      (https://review.tizen.org/gerrit/#/c/121724/)

Change-Id: I13db906281964afa976919e528a1b5d95ee29d25
Signed-off-by: Sungtaek Hong <sth253.hong@samsung.com>
ElmSharp/ElmSharp/Button.cs

index e369054..cf6155c 100755 (executable)
@@ -163,13 +163,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_button_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_button_add(parent.Handle);
         }
     }
 }