rimmed pushed a commit to branch master. http://git.enlightenment.org/tools/eflete.git/commit/?id=951fde9f19c88cc25ae7cf298afd21a3921d0e0c
commit 951fde9f19c88cc25ae7cf298afd21a3921d0e0c Author: Viacheslav Reutskyi <reutskiy....@gmail.com> Date: Sat Feb 13 09:08:41 2016 +0200 style_manager: disable menu item 'Tag' if any style not selected --- src/bin/ui/style_manager.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/bin/ui/style_manager.c b/src/bin/ui/style_manager.c index cb04f7a..38a568d 100644 --- a/src/bin/ui/style_manager.c +++ b/src/bin/ui/style_manager.c @@ -64,6 +64,7 @@ struct _Style_Editor Evas_Object *entry_prev; Evas_Object *button_del; Evas_Object *menu; + Elm_Object_Item *menu_tag; Search_Data style_search_data; struct { const char *st_name; @@ -819,9 +820,13 @@ _on_bt_add(void *data, assert(style_edit != NULL); evas_object_geometry_get(obj, &x, &y, NULL, &h); - elm_menu_move(style_edit->menu, x, y + h); evas_object_show(style_edit->menu); + + if (elm_genlist_selected_item_get(style_edit->glist)) + elm_object_item_disabled_set(style_edit->menu_tag, false); + else + elm_object_item_disabled_set(style_edit->menu_tag, true); } /* Creating the view of the mwin!!! */ @@ -897,7 +902,7 @@ _form_right_side(Style_Editor *style_edit) style_edit->menu = elm_menu_add(ap.win); elm_menu_item_add(style_edit->menu, NULL, NULL, _("Style"), _on_bt_style_add, style_edit); - elm_menu_item_add(style_edit->menu, NULL, NULL, _("Tag"), _on_bt_tag_add, style_edit); + style_edit->menu_tag = elm_menu_item_add(style_edit->menu, NULL, NULL, _("Tag"), _on_bt_tag_add, style_edit); button_add = elm_button_add(ap.win); evas_object_show(button_add); --