summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVitalii Vorobiov <vi.vorobiov@samsung.com>2016-06-30 21:12:52 +0300
committerVitalii Vorobiov <vi.vorobiov@samsung.com>2016-06-30 21:14:26 +0300
commit744fa9bba11b400b8837c700a8ab0722d8367c0b (patch)
treee0286a0ab14cc7bbcc582a7e6d9ca7cbd088ac0a /src
parent61afb3360e627927df9d0cacede9c55099efd555 (diff)
elc_hoversel: just little fix of expand/noitem behavior
when hoversel has no item at all and use clicks on it, then it goes into state called "expanded". and so then, no matter how many items user would try to add, hoversel won't work anymore. @fix
Diffstat (limited to 'src')
-rw-r--r--src/lib/elementary/elc_hoversel.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/elementary/elc_hoversel.c b/src/lib/elementary/elc_hoversel.c
index 4b6df50..c82429e 100644
--- a/src/lib/elementary/elc_hoversel.c
+++ b/src/lib/elementary/elc_hoversel.c
@@ -384,11 +384,12 @@ _activate(Evas_Object *obj)
384 elm_hoversel_hover_end(obj); 384 elm_hoversel_hover_end(obj);
385 return; 385 return;
386 } 386 }
387 sd->expanded = EINA_TRUE;
388 387
389 if (elm_widget_disabled_get(obj)) return; 388 if (elm_widget_disabled_get(obj)) return;
390 if (!sd->items) return; 389 if (!sd->items) return;
391 390
391 sd->expanded = EINA_TRUE;
392
392 sd->hover = elm_hover_add(sd->hover_parent); 393 sd->hover = elm_hover_add(sd->hover_parent);
393 elm_widget_sub_object_add(obj, sd->hover); 394 elm_widget_sub_object_add(obj, sd->hover);
394 evas_object_layer_set(sd->hover, evas_object_layer_get(sd->hover_parent)); 395 evas_object_layer_set(sd->hover, evas_object_layer_get(sd->hover_parent));