From: arosis Date: Mon, 31 Jul 2017 09:21:23 +0000 (+0900) Subject: Remove layout for Label and Entry because of some issues. X-Git-Tag: submit/trunk/20170823.075128~110^2~7^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=81755d894a958593dc48b98496e0cce73a73e4d5;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Remove layout for Label and Entry because of some issues. Change-Id: I04bc7a330ba485e94f4228d2d8b530e0b5f5485c Signed-off-by: arosis --- 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); } }