From c9cdbdda36282bd5935c82ab4e74ffcaa5376259 Mon Sep 17 00:00:00 2001 From: Kangho Hur Date: Tue, 21 Feb 2017 11:13:26 +0900 Subject: Do not use layout for Label and Entry. - 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 | 9 ++------- ElmSharp/ElmSharp/Label.cs | 9 ++------- 2 files changed, 4 insertions(+), 14 deletions(-) mode change 100755 => 100644 ElmSharp/ElmSharp/Entry.cs mode change 100755 => 100644 ElmSharp/ElmSharp/Label.cs diff --git a/ElmSharp/ElmSharp/Entry.cs b/ElmSharp/ElmSharp/Entry.cs old mode 100755 new mode 100644 index 5647f03..83a7e1b --- a/ElmSharp/ElmSharp/Entry.cs +++ b/ElmSharp/ElmSharp/Entry.cs @@ -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); } } } diff --git a/ElmSharp/ElmSharp/Label.cs b/ElmSharp/ElmSharp/Label.cs old mode 100755 new mode 100644 index 1bcb5b3..6c30010 --- a/ElmSharp/ElmSharp/Label.cs +++ b/ElmSharp/ElmSharp/Label.cs @@ -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); } } -- cgit v1.2.3