rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=8bbf363618baf4471ae98ab8df15fab941c16979

commit 8bbf363618baf4471ae98ab8df15fab941c16979
Author: Vyacheslav Reutskiy <v.reuts...@samsung.com>
Date:   Fri Mar 25 16:36:59 2016 +0200

    group_navigator: set the menu shortcut label
    
    Change-Id: I45cf125f28d03539116d766cbd0710d237c3d30c
---
 src/bin/ui/workspace/group_navigator.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/bin/ui/workspace/group_navigator.c 
b/src/bin/ui/workspace/group_navigator.c
index cb0f658..6fd7034 100644
--- a/src/bin/ui/workspace/group_navigator.c
+++ b/src/bin/ui/workspace/group_navigator.c
@@ -1785,6 +1785,7 @@ group_navigator_add(Evas_Object *parent, Group *group)
 {
    Evas_Object *icon;
    Part_List *pl;
+   Elm_Object_Item *menu_item;
 
    assert(group != NULL);
    assert(parent != NULL);
@@ -1883,16 +1884,20 @@ group_navigator_add(Evas_Object *parent, Group *group)
    pl->menu = elm_menu_add(ap.win);
    evas_object_data_set(pl->menu, GROUP_NAVIGATOR_DATA, pl);
 
-   elm_menu_item_add(pl->menu, NULL, NULL, _("Part"), 
_on_menu_add_part_clicked, NULL);
+   menu_item = elm_menu_item_add(pl->menu, NULL, NULL, _("Part"), 
_on_menu_add_part_clicked, NULL);
+   elm_object_part_text_set(elm_menu_item_object_get(menu_item), 
"elm.shortcut", "q");
    elm_menu_item_separator_add(pl->menu, NULL);
 
    pl->add_state_menu_item = elm_menu_item_add(pl->menu, NULL, NULL, 
_("State"), _on_menu_add_state_clicked, NULL);
+   elm_object_part_text_set(elm_menu_item_object_get(pl->add_state_menu_item), 
"elm.shortcut", "w");
    elm_object_item_disabled_set(pl->add_state_menu_item, true);
    pl->add_part_item_menu_item = elm_menu_item_add(pl->menu, NULL, NULL, 
_("Item"), _on_menu_add_item_clicked, NULL);
+   
elm_object_part_text_set(elm_menu_item_object_get(pl->add_part_item_menu_item), 
"elm.shortcut", "e");
    elm_object_item_disabled_set(pl->add_part_item_menu_item, true);
    elm_menu_item_separator_add(pl->menu, NULL);
 
-   elm_menu_item_add(pl->menu, NULL, NULL, _("Program"), 
_on_menu_add_program_clicked, NULL);
+   menu_item = elm_menu_item_add(pl->menu, NULL, NULL, _("Program"), 
_on_menu_add_program_clicked, NULL);
+   elm_object_part_text_set(elm_menu_item_object_get(menu_item), 
"elm.shortcut", "r");
 
    pl->name_validator = elm_validator_regexp_new(PART_NAME_REGEX, NULL);
    if (group->main_group)

-- 


Reply via email to