forked from enlightenment/enlightenment
Navigate menu now tells you when there are no listable items
ticket #1682 SVN revision: 78433
This commit is contained in:
parent
1901f43c35
commit
c30d8d1a0b
|
@ -186,12 +186,14 @@ _e_mod_menu_populate_done(void *data, Eio_File *handler __UNUSED__)
|
||||||
if (!e_object_unref(data)) return;
|
if (!e_object_unref(data)) return;
|
||||||
if (!m->items)
|
if (!m->items)
|
||||||
{
|
{
|
||||||
e_menu_deactivate(m);
|
E_Menu_Item *mi;
|
||||||
if (m->parent_item)
|
|
||||||
e_menu_item_submenu_set(m->parent_item, NULL);
|
mi = e_menu_item_new(m);
|
||||||
return;
|
e_menu_item_label_set(mi, _("0 listable items"));
|
||||||
|
e_menu_item_disabled_set(mi, 1);
|
||||||
}
|
}
|
||||||
m->items = eina_list_sort(m->items, 0, (Eina_Compare_Cb)_e_mod_menu_populate_sort);
|
else
|
||||||
|
m->items = eina_list_sort(m->items, 0, (Eina_Compare_Cb)_e_mod_menu_populate_sort);
|
||||||
e_menu_thaw(m);
|
e_menu_thaw(m);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue