forked from enlightenment/enlightenment
Add all apps config dialog to the config shortcut menu.
SVN revision: 25330
This commit is contained in:
parent
3e91158fc6
commit
0a4101f9ea
|
@ -21,6 +21,7 @@ e_fdo_menu_to_order(void)
|
|||
*/
|
||||
char *menu_file;
|
||||
|
||||
/* Should rm -fr ~/.e/e/applications/menu/all to make sure we start from a clean slate. */
|
||||
/* Find the main menu file. */
|
||||
menu_file = ecore_desktop_paths_file_find(ecore_desktop_paths_menus,
|
||||
"applications.menu", -1, NULL, NULL);
|
||||
|
|
|
@ -643,6 +643,12 @@ _e_int_menus_module_item_cb(void *data, E_Menu *m, E_Menu_Item *mi)
|
|||
e_int_config_modules(m->zone->container);
|
||||
}
|
||||
|
||||
static void
|
||||
_e_int_menus_applications_item_cb(void *data, E_Menu *m, E_Menu_Item *mi)
|
||||
{
|
||||
e_int_config_apps(m->zone->container);
|
||||
}
|
||||
|
||||
static void
|
||||
_e_int_menus_config_pre_cb(void *data, E_Menu *m)
|
||||
{
|
||||
|
@ -671,6 +677,11 @@ _e_int_menus_config_pre_cb(void *data, E_Menu *m)
|
|||
e_util_menu_item_edje_icon_set(mi, "enlightenment/modules");
|
||||
e_menu_item_callback_set(mi, _e_int_menus_module_item_cb, NULL);
|
||||
|
||||
mi = e_menu_item_new(m);
|
||||
e_menu_item_label_set(mi, _("All Applications"));
|
||||
e_util_menu_item_edje_icon_set(mi, "enlightenment/applications");
|
||||
e_menu_item_callback_set(mi, _e_int_menus_applications_item_cb, NULL);
|
||||
|
||||
l = evas_hash_find(_e_int_menus_augmentation, "config");
|
||||
if (l)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue