From 81755d894a958593dc48b98496e0cce73a73e4d5 Mon Sep 17 00:00:00 2001 From: arosis Date: Mon, 31 Jul 2017 18:21:23 +0900 Subject: [PATCH] Remove layout for Label and Entry because of some issues. Change-Id: I04bc7a330ba485e94f4228d2d8b530e0b5f5485c Signed-off-by: arosis --- src/ElmSharp/ElmSharp/Entry.cs | 22 +--------------------- src/ElmSharp/ElmSharp/Label.cs | 10 ++-------- 2 files changed, 3 insertions(+), 29 deletions(-) diff --git a/src/ElmSharp/ElmSharp/Entry.cs b/src/ElmSharp/ElmSharp/Entry.cs index 67c7ff9..50f3c4a 100755 --- a/src/ElmSharp/ElmSharp/Entry.cs +++ b/src/ElmSharp/ElmSharp/Entry.cs @@ -754,20 +754,6 @@ namespace ElmSharp } /// - /// Sets the color of color class for a given widget. - /// - /// The name of color class. - /// The struct of color - public override void SetPartColor(string part, Color color) - { - IntPtr handle = (part == "bg") ? Handle : RealHandle; - Interop.Elementary.elm_object_color_class_color_set(handle, part, color.R * color.A / 255, - color.G * color.A / 255, - color.B * color.A / 255, - color.A); - } - - /// /// Forces calculation of the entry size and text layouting. /// public void ForceCalculation() @@ -1033,13 +1019,7 @@ 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", "background", "default"); - - RealHandle = Interop.Elementary.elm_entry_add(handle); - Interop.Elementary.elm_object_part_content_set(handle, "elm.swallow.content", RealHandle); - - return handle; + return Interop.Elementary.elm_entry_add(parent.Handle); } } } \ No newline at end of file diff --git a/src/ElmSharp/ElmSharp/Label.cs b/src/ElmSharp/ElmSharp/Label.cs index 3a0b012..12aae07 100755 --- a/src/ElmSharp/ElmSharp/Label.cs +++ b/src/ElmSharp/ElmSharp/Label.cs @@ -183,14 +183,8 @@ namespace ElmSharp /// EvasObject /// The new object, otherwise null if it cannot be created 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; + { + return Interop.Elementary.elm_label_add(parent.Handle); } } -- 2.7.4