summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <hermet@hermet.pe.kr>2016-01-08 20:50:01 +0900
committerHermet Park <hermet@hermet.pe.kr>2016-01-08 20:50:01 +0900
commite52126c004843f865d50649a5be9e7d9f305ef92 (patch)
tree4c53226e35e1707766d428a886b0b05c134b4949
parent060e47e169ef190d0d09fdb63ff9151d31baa4c4 (diff)
hoversel: don't activate if the items were none.
it's wierd to expand hoversel without items. the behavior made me suprised before i analyzed it. it looked almost a bug. if you have any other objections, please ping me.
-rw-r--r--src/lib/elc_hoversel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/elc_hoversel.c b/src/lib/elc_hoversel.c
index 51625da76..175e1fb9c 100644
--- a/src/lib/elc_hoversel.c
+++ b/src/lib/elc_hoversel.c
@@ -421,6 +421,7 @@ _activate(Evas_Object *obj)
421 sd->expanded = EINA_TRUE; 421 sd->expanded = EINA_TRUE;
422 422
423 if (elm_widget_disabled_get(obj)) return; 423 if (elm_widget_disabled_get(obj)) return;
424 if (!sd->items) return;
424 425
425 sd->hover = elm_hover_add(sd->hover_parent); 426 sd->hover = elm_hover_add(sd->hover_parent);
426 elm_widget_sub_object_add(obj, sd->hover); 427 elm_widget_sub_object_add(obj, sd->hover);
@@ -794,7 +795,6 @@ _elm_hoversel_item_add(Eo *obj, Elm_Hoversel_Data *sd, const char *label, const
794 snprintf(buf, sizeof(buf), "hoversel_vertical_entry/%s", 795 snprintf(buf, sizeof(buf), "hoversel_vertical_entry/%s",
795 elm_widget_style_get(obj)); 796 elm_widget_style_get(obj));
796 797
797
798 VIEW(item) = bt = elm_button_add(obj); 798 VIEW(item) = bt = elm_button_add(obj);
799 elm_widget_mirrored_set(bt, elm_widget_mirrored_get(obj)); 799 elm_widget_mirrored_set(bt, elm_widget_mirrored_get(obj));
800 elm_object_style_set(bt, buf); 800 elm_object_style_set(bt, buf);