eunue pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=0329b987b1c96574156c15584abd07f333987500

commit 0329b987b1c96574156c15584abd07f333987500
Author: Jaeun Choi <jaeun12.c...@samsung.com>
Date:   Tue Jan 20 10:32:06 2015 +0900

    Elm_Entry: set handler style according to current widget style
    
    Previously, entry set handlers' style as default when they are created
    and changed style on theme_apply function. But in usual scenario, users 
create
    entry and set style before handlers are created, so when they are created
    the style is set as default regardless of the style users already set.
    This patch fixes it.
    
    @fix
---
 src/lib/elm_entry.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c
index a345e41..dcf6f85 100644
--- a/src/lib/elm_entry.c
+++ b/src/lib/elm_entry.c
@@ -3499,10 +3499,11 @@ static void
 _create_selection_handlers(Evas_Object *obj, Elm_Entry_Data *sd)
 {
    Evas_Object *handle;
+   const char *style = elm_widget_style_get(obj);
 
    handle = edje_object_add(evas_object_evas_get(obj));
    sd->start_handler = handle;
-   _elm_theme_object_set(obj, handle, "entry", "handler/start", "default");
+   _elm_theme_object_set(obj, handle, "entry", "handler/start", style);
    evas_object_event_callback_add(handle, EVAS_CALLBACK_MOUSE_DOWN,
                                   _start_handler_mouse_down_cb, obj);
    evas_object_event_callback_add(handle, EVAS_CALLBACK_MOUSE_MOVE,
@@ -3513,7 +3514,7 @@ _create_selection_handlers(Evas_Object *obj, 
Elm_Entry_Data *sd)
 
    handle = edje_object_add(evas_object_evas_get(obj));
    sd->end_handler = handle;
-   _elm_theme_object_set(obj, handle, "entry", "handler/end", "default");
+   _elm_theme_object_set(obj, handle, "entry", "handler/end", style);
    evas_object_event_callback_add(handle, EVAS_CALLBACK_MOUSE_DOWN,
                                   _end_handler_mouse_down_cb, obj);
    evas_object_event_callback_add(handle, EVAS_CALLBACK_MOUSE_MOVE,

-- 


Reply via email to