aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser-factory.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-08-18 01:53:36 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-08-18 01:53:36 +0800
commitdf2c6c922a5700d261717a1e11a33a04ff5f98a6 (patch)
treee91371bab7c61b17504f40540b1af2b501e2013d /mail/folder-browser-factory.c
parent5ee91c7383e422383e63a4c748cad80ab5ca6533 (diff)
downloadgsoc2013-evolution-df2c6c922a5700d261717a1e11a33a04ff5f98a6.tar
gsoc2013-evolution-df2c6c922a5700d261717a1e11a33a04ff5f98a6.tar.gz
gsoc2013-evolution-df2c6c922a5700d261717a1e11a33a04ff5f98a6.tar.bz2
gsoc2013-evolution-df2c6c922a5700d261717a1e11a33a04ff5f98a6.tar.lz
gsoc2013-evolution-df2c6c922a5700d261717a1e11a33a04ff5f98a6.tar.xz
gsoc2013-evolution-df2c6c922a5700d261717a1e11a33a04ff5f98a6.tar.zst
gsoc2013-evolution-df2c6c922a5700d261717a1e11a33a04ff5f98a6.zip
Move menu items around, fix some GUI bits.
svn path=/trunk/; revision=4867
Diffstat (limited to 'mail/folder-browser-factory.c')
-rw-r--r--mail/folder-browser-factory.c95
1 files changed, 59 insertions, 36 deletions
diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c
index 9a71dbe8ab..4cdc7109e5 100644
--- a/mail/folder-browser-factory.c
+++ b/mail/folder-browser-factory.c
@@ -134,7 +134,7 @@ control_activate (BonoboControl *control, BonoboUIHandler *uih,
NULL);
bonobo_ui_handler_menu_new_item (uih, "/File/<Print Placeholder>/Print message...",
- _("_Print message"),
+ _("_Print Message"),
NULL, -1,
BONOBO_UI_HANDLER_PIXMAP_STOCK,
GNOME_STOCK_MENU_PRINT,
@@ -142,63 +142,80 @@ control_activate (BonoboControl *control, BonoboUIHandler *uih,
bonobo_ui_handler_menu_new_separator (uih, "/File/<Print Placeholder>/separator1", -1);
- bonobo_ui_handler_menu_new_item (uih, "/Actions/Edit Message", _("E_dit Message"),
+ bonobo_ui_handler_menu_new_subtree (uih, "/<Component Placeholder>/Folder",
+ _("F_older"),
+ NULL, -1,
+ BONOBO_UI_HANDLER_PIXMAP_NONE, NULL,
+ 0, 0);
+
+ bonobo_ui_handler_menu_new_item (uih, "/<Component Placeholder>/Folder/Expunge",
+ _("_Expunge"),
+ NULL, -1,
+ BONOBO_UI_HANDLER_PIXMAP_STOCK,
+ GNOME_STOCK_MENU_TRASH,
+ 0, 0, expunge_folder, folder_browser);
+
+ bonobo_ui_handler_menu_new_item (uih, "<Component Placeholder>/Folder/Configure Folder",
+ _("_Configure Folder"),
+ NULL, -1,
+ BONOBO_UI_HANDLER_PIXMAP_NONE,
+ 0,
+ 0, 0, configure_folder, folder_browser);
+
+ bonobo_ui_handler_menu_new_subtree (uih, "/<Component Placeholder>/Message",
+ _("_Message"),
+ NULL, -1,
+ BONOBO_UI_HANDLER_PIXMAP_NONE, NULL,
+ 0, 0);
+
+ bonobo_ui_handler_menu_new_item (uih, "/<Component Placeholder>/Message/Edit",
+ _("E_dit"),
NULL, -1,
BONOBO_UI_HANDLER_PIXMAP_STOCK,
- GNOME_STOCK_MENU_MAIL_NEW,
+ GNOME_STOCK_MENU_MAIL,
0, 0, edit_message, folder_browser);
- bonobo_ui_handler_menu_new_item (uih, "/Actions/View Message",
- _("_View Message"),
+ bonobo_ui_handler_menu_new_item (uih, "/<Component Placeholder>/Message/View",
+ _("_View"),
NULL, -1,
BONOBO_UI_HANDLER_PIXMAP_STOCK,
- GNOME_STOCK_MENU_MAIL_NEW,
+ GNOME_STOCK_MENU_MAIL,
0, 0, view_message, folder_browser);
- bonobo_ui_handler_menu_new_separator (uih, "/Actions/separator1", -1);
-
- bonobo_ui_handler_menu_new_item (uih, "/Actions/Mark all seen",
- _("_Mark all messages seen"),
+ bonobo_ui_handler_menu_new_item (uih, "/<Component Placeholder>/Message/Mark as Read",
+ _("_Mark as Read"),
NULL, -1,
BONOBO_UI_HANDLER_PIXMAP_NONE, NULL,
- 0, 0, mark_all_seen, folder_browser);
- bonobo_ui_handler_menu_new_item (uih, "/Actions/Expunge", _("_Expunge"),
- NULL, -1,
- BONOBO_UI_HANDLER_PIXMAP_STOCK,
- GNOME_STOCK_MENU_TRASH,
- 0, 0, expunge_folder, folder_browser);
+ 0, 0, mark_all_seen, folder_browser);
- bonobo_ui_handler_menu_new_item (uih, "/Tools/Mail Filters ...", _("Mail _Filters ..."),
+ bonobo_ui_handler_menu_new_item (uih, "/Settings/Mail Filters ...",
+ _("Mail _Filters ..."),
NULL, -1,
BONOBO_UI_HANDLER_PIXMAP_NONE,
0,
0, 0, filter_edit, folder_browser);
- bonobo_ui_handler_menu_new_item (uih, "/Tools/vFolder Editor ...", _("_vFolder Editor ..."),
+ bonobo_ui_handler_menu_new_item (uih, "/Settings/vFolder Editor ...",
+ _("_vFolder Editor ..."),
NULL, -1,
BONOBO_UI_HANDLER_PIXMAP_NONE,
0,
0, 0, vfolder_edit_vfolders, folder_browser);
- bonobo_ui_handler_menu_new_item (uih, "/Tools/Mail Configuration ...", _("_Mail Configuration ..."),
+ bonobo_ui_handler_menu_new_item (uih, "/Settings/Mail Configuration ...",
+ _("_Mail Configuration ..."),
NULL, -1,
BONOBO_UI_HANDLER_PIXMAP_NONE,
0,
0, 0, (void *) mail_config, NULL);
- bonobo_ui_handler_menu_new_item (uih, "/Tools/Forget Passwords", _("Forget _Passwords"),
+ bonobo_ui_handler_menu_new_item (uih, "/Settings/Forget Passwords",
+ _("Forget _Passwords"),
NULL, -1,
BONOBO_UI_HANDLER_PIXMAP_NONE,
0,
0, 0, forget_passwords, NULL);
-
- bonobo_ui_handler_menu_new_item (uih, "/Tools/Configure Folder", _("_Configure Folder"),
- NULL, -1,
- BONOBO_UI_HANDLER_PIXMAP_NONE,
- 0,
- 0, 0, configure_folder, folder_browser);
-
create_ondemand_hooks (fb, uih);
toolbar = gtk_toolbar_new (GTK_ORIENTATION_HORIZONTAL,
@@ -242,15 +259,21 @@ control_deactivate (BonoboControl *control,
bonobo_ui_handler_menu_remove (uih, "/File/<Print Placeholder>/Print message...");
bonobo_ui_handler_menu_remove (uih, "/View/Threaded");
- bonobo_ui_handler_menu_remove (uih, "/Actions/Mark all seen");
- bonobo_ui_handler_menu_remove (uih, "/Actions/Edit Message");
- bonobo_ui_handler_menu_remove (uih, "/Actions/View Message");
- bonobo_ui_handler_menu_remove (uih, "/Actions/Expunge");
- bonobo_ui_handler_menu_remove (uih, "/Tools/Mail Filters ...");
- bonobo_ui_handler_menu_remove (uih, "/Tools/vFolder Editor ...");
- bonobo_ui_handler_menu_remove (uih, "/Tools/Mail Configuration ...");
- bonobo_ui_handler_menu_remove (uih, "/Tools/Forget Passwords");
- bonobo_ui_handler_menu_remove (uih, "/Tools/Configure Folder");
+
+ bonobo_ui_handler_menu_remove (uih, "/<Component Placeholder>/Folder");
+ bonobo_ui_handler_menu_remove (uih, "/<Component Placeholder>/Folder/Expunge");
+
+ bonobo_ui_handler_menu_remove (uih, "/<Component Placeholder>/Message");
+ bonobo_ui_handler_menu_remove (uih, "/<Component Placeholder>/Message/Edit");
+ bonobo_ui_handler_menu_remove (uih, "/<Component Placeholder>/Message/View");
+ bonobo_ui_handler_menu_remove (uih, "/<Component Placeholder>/Message/Mark as Read");
+
+ bonobo_ui_handler_menu_remove (uih, "/Settings/Mail Filters ...");
+ bonobo_ui_handler_menu_remove (uih, "/Settings/vFolder Editor ...");
+ bonobo_ui_handler_menu_remove (uih, "/Settings/Mail Configuration ...");
+ bonobo_ui_handler_menu_remove (uih, "/Settings/Forget Passwords");
+ bonobo_ui_handler_menu_remove (uih, "/Settings/Configure Folder");
+
bonobo_ui_handler_dock_remove (uih, toolbar_name);
g_free (toolbar_name);