forked from enlightenment/enlightenment
e file manager: hide open menu items if there is no selection.
SVN revision: 73893
This commit is contained in:
parent
3ab7688b9b
commit
2ac1229261
|
@ -7814,11 +7814,7 @@ _e_fm2_menu(Evas_Object *obj, unsigned int timestamp)
|
|||
else
|
||||
{
|
||||
if (sd->icon_menu.start.func)
|
||||
{
|
||||
sd->icon_menu.start.func(sd->icon_menu.start.data, sd->obj, mn, NULL);
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_separator_set(mi, 1);
|
||||
}
|
||||
if ((!(sd->icon_menu.flags & E_FM2_MENU_NO_INHERIT_PARENT)) &&
|
||||
(sd->view_flags & E_FM2_VIEW_INHERIT_DIR_CUSTOM))
|
||||
{
|
||||
|
@ -7973,12 +7969,7 @@ _e_fm2_icon_menu(E_Fm2_Icon *ic, Evas_Object *obj, unsigned int timestamp)
|
|||
else
|
||||
{
|
||||
if (sd->icon_menu.start.func)
|
||||
{
|
||||
sd->icon_menu.start.func(sd->icon_menu.start.data, sd->obj, mn, NULL);
|
||||
mi = e_menu_item_new(mn);
|
||||
e_menu_item_separator_set(mi, 1);
|
||||
}
|
||||
|
||||
if ((!(sd->icon_menu.flags & E_FM2_MENU_NO_INHERIT_PARENT)) &&
|
||||
(sd->view_flags & E_FM2_VIEW_INHERIT_DIR_CUSTOM))
|
||||
{
|
||||
|
|
|
@ -1712,8 +1712,13 @@ _e_fwin_cb_menu_extend_start(void *data,
|
|||
E_Menu_Item *mi;
|
||||
E_Fwin_Page *page;
|
||||
E_Menu *subm;
|
||||
Eina_List *selected = NULL;
|
||||
|
||||
page = data;
|
||||
|
||||
selected = e_fm2_selected_list_get(page->fm_obj);
|
||||
if (!selected) return;
|
||||
|
||||
mi = e_menu_item_new(m);
|
||||
e_menu_item_label_set(mi, _("Open"));
|
||||
e_util_menu_item_theme_icon_set(mi, "document-open");
|
||||
|
@ -1726,6 +1731,9 @@ _e_fwin_cb_menu_extend_start(void *data,
|
|||
subm = e_menu_new();
|
||||
e_menu_item_submenu_set(mi, subm);
|
||||
e_menu_pre_activate_callback_set(subm, _e_fwin_cb_menu_extend_open_with, page);
|
||||
|
||||
mi = e_menu_item_new(m);
|
||||
e_menu_item_separator_set(mi, 1);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue