hermet pushed a commit to branch master.

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

commit e52126c004843f865d50649a5be9e7d9f305ef92
Author: Hermet Park <her...@hermet.pe.kr>
Date:   Fri Jan 8 20:50:01 2016 +0900

    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.
---
 src/lib/elc_hoversel.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/elc_hoversel.c b/src/lib/elc_hoversel.c
index 51625da..175e1fb 100644
--- a/src/lib/elc_hoversel.c
+++ b/src/lib/elc_hoversel.c
@@ -421,6 +421,7 @@ _activate(Evas_Object *obj)
    sd->expanded = EINA_TRUE;
 
    if (elm_widget_disabled_get(obj)) return;
+   if (!sd->items) return;
 
    sd->hover = elm_hover_add(sd->hover_parent);
    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
      snprintf(buf, sizeof(buf), "hoversel_vertical_entry/%s",
               elm_widget_style_get(obj));
 
-
    VIEW(item) = bt = elm_button_add(obj);
    elm_widget_mirrored_set(bt, elm_widget_mirrored_get(obj));
    elm_object_style_set(bt, buf);

-- 


Reply via email to