EAPI Evas_Object *elm_toolbar_add(Evas_Object *parent);
EAPI void elm_toolbar_icon_size_set(Evas_Object *obj, int icon_size);
EAPI int elm_toolbar_icon_size_get(Evas_Object *obj);
+ EAPI void elm_toolbar_item_unselect_all(Evas_Object *obj);
EAPI Elm_Toolbar_Item *elm_toolbar_item_add(Evas_Object *obj, Evas_Object *icon, const char *label, void (*func) (void *data, Evas_Object *obj, void *event_info), const void *data);
EAPI Evas_Object *elm_toolbar_item_icon_get(Elm_Toolbar_Item *item);
EAPI const char *elm_toolbar_item_label_get(Elm_Toolbar_Item *item);
it->menu_position = NULL;
evas_object_del(it->menu_hover);
it->menu_hover = NULL;
+ elm_toolbar_item_unselect_all(it->obj);
}
static void
wd->menu_parent = parent;
}
+EAPI void
+elm_toolbar_item_unselect_all(Evas_Object *obj)
+{
+ Eina_List *l;
+ Elm_Toolbar_Item *it;
+ Widget_Data *wd = elm_widget_data_get(obj);
+ if (!wd) return;
+ EINA_LIST_FOREACH(wd->items, l, it)
+ {
+ if (it->selected)
+ {
+ it->selected = EINA_FALSE;
+ edje_object_signal_emit(it->base, "elm,state,unselected", "elm");
+ break;
+ }
+ }
+}
EAPI void
elm_toolbar_item_menu_set(Elm_Toolbar_Item *item, Eina_Bool menu)