[ElmSharp] Remove layout for Background (#28)
authorarosis78 <35049857+arosis78@users.noreply.github.com>
Thu, 18 Jan 2018 04:10:08 +0000 (13:10 +0900)
committerGitHub <noreply@github.com>
Thu, 18 Jan 2018 04:10:08 +0000 (13:10 +0900)
Signed-off-by: Jeonghyun Yun <jh0506.yun@samsung.com>
src/ElmSharp/ElmSharp/Background.cs

index d6114b7..e00347a 100755 (executable)
@@ -132,13 +132,7 @@ namespace ElmSharp
         /// <since_tizen> preview </since_tizen>
         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_bg_add(handle);
-            Interop.Elementary.elm_object_part_content_set(handle, "elm.swallow.content", RealHandle);
-
-            return handle;
+            return Interop.Elementary.elm_bg_add(parent.Handle);
         }
     }
 
@@ -168,4 +162,4 @@ namespace ElmSharp
         /// </summary>
         Tile
     }
-}
\ No newline at end of file
+}