Make toggling visibity of entry icons actually work
authorIván Briano <sachieru@gmail.com>
Tue, 11 Oct 2011 02:07:56 +0000 (02:07 +0000)
committerIván Briano <sachieru@gmail.com>
Tue, 11 Oct 2011 02:07:56 +0000 (02:07 +0000)
SVN revision: 63971

data/themes/widgets/entry.edc
src/lib/elm_entry.c

index c894b73..79a2aa9 100644 (file)
@@ -71,7 +71,7 @@ group { name: "elm/scroller/entry/default";
             fixed: 1 1;
             rel1 {
                to: "bg";
-               relative: 0.0 0.0;
+               relative: -1.0 0.0;
                offset: 0 0;
             }
             rel2 {
index e8d248d..5e8f2a7 100644 (file)
@@ -3115,11 +3115,14 @@ elm_entry_icon_visible_set(Evas_Object *obj, Eina_Bool setting)
 {
    ELM_CHECK_WIDTYPE(obj, widtype);
    Widget_Data *wd = elm_widget_data_get(obj);
+   Evas_Object *edje;
    if ((!wd) || (!wd->icon)) return;
+   edje = elm_smart_scroller_edje_object_get(wd->scroller);
+   if (!edje) return;
    if (setting)
-     evas_object_hide(wd->icon);
+     edje_object_signal_emit(edje, "elm,action,show,icon", "elm");
    else
-     evas_object_show(wd->icon);
+     edje_object_signal_emit(edje, "elm,action,hide,icon", "elm");
    _sizing_eval(obj);
 }
 
@@ -3175,11 +3178,14 @@ elm_entry_end_visible_set(Evas_Object *obj, Eina_Bool setting)
 {
    ELM_CHECK_WIDTYPE(obj, widtype);
    Widget_Data *wd = elm_widget_data_get(obj);
+   Evas_Object *edje;
    if ((!wd) || (!wd->end)) return;
+   edje = elm_smart_scroller_edje_object_get(wd->scroller);
+   if (!edje) return;
    if (setting)
-     evas_object_hide(wd->end);
+     edje_object_signal_emit(edje, "elm,action,show,end", "elm");
    else
-     evas_object_show(wd->end);
+     edje_object_signal_emit(edje, "elm,action,hide,end", "elm");
    _sizing_eval(obj);
 }