don't show "Lost Windows" on main menu. It is already in "Windows" submenu.

This makes the first level of the menu simpler. If you want the "Lost
windows" on the main menu back, make sure you remove the "if (dat)"
branch inside _e_int_menus_clients_pre_cb() otherwise you get duplicated menus.



SVN revision: 49199
This commit is contained in:
Gustavo Sverzut Barbieri 2010-05-25 18:22:48 +00:00
parent eade689804
commit 367b87e1cb
1 changed files with 2 additions and 0 deletions

View File

@ -154,6 +154,7 @@ e_int_menus_main_new(void)
e_menu_item_submenu_set(mi, subm);
e_object_data_set(E_OBJECT(subm), dat);
#if 0 // lost windows already handled inside "Windows" from main menu.
subm = e_int_menus_lost_clients_new();
e_object_data_set(E_OBJECT(subm), dat);
dat->lost_clients = subm;
@ -161,6 +162,7 @@ e_int_menus_main_new(void)
e_menu_item_label_set(mi, _("Lost Windows"));
e_util_menu_item_theme_icon_set(mi, "preferences-windows-lost");
e_menu_item_submenu_set(mi, subm);
#endif
l = _e_int_menus_augmentation_find("main/3");
if (l) _e_int_menus_augmentation_add(m, l);