aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser-factory.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/folder-browser-factory.c')
-rw-r--r--mail/folder-browser-factory.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c
index dc5fd25ca5..1273212185 100644
--- a/mail/folder-browser-factory.c
+++ b/mail/folder-browser-factory.c
@@ -67,6 +67,15 @@ control_activate (BonoboControl *control, BonoboUIHandler *uih,
FOLDER_BROWSER (folder_browser)->message_list,
NULL);
+ bonobo_ui_handler_menu_new_item (uih, "/File/<Print Placeholder>/Print message...",
+ _("_Print message"),
+ NULL, -1,
+ BONOBO_UI_HANDLER_PIXMAP_STOCK,
+ GNOME_STOCK_MENU_PRINT,
+ 0, 0, (void *) print_msg, folder_browser);
+
+ bonobo_ui_handler_menu_new_separator (uih, "/File/<Print Placeholder>/separator1", -1);
+
bonobo_ui_handler_menu_new_item (uih, "/Actions/Mark all seen",
_("_Mark all messages seen"),
NULL, -1,
@@ -154,6 +163,9 @@ control_deactivate (BonoboControl *control, BonoboUIHandler *uih,
{
char *toolbar_name = g_strdup_printf ("/Toolbar%d", fb->serial);
+ bonobo_ui_handler_menu_remove (uih, "/File/<Print Placeholder>/separator1");
+ 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");