aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser-factory.c
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2000-08-09 13:28:16 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2000-08-09 13:28:16 +0800
commit5bdcadd4cf57f4f9ee405a33daf7a3f91e1f6bf1 (patch)
tree65a76ad437bb6d907073d84cb83e11df93d7efec /mail/folder-browser-factory.c
parent5a6dd4803e8c7386f2d6f4f8bbef977e42b26761 (diff)
downloadgsoc2013-evolution-5bdcadd4cf57f4f9ee405a33daf7a3f91e1f6bf1.tar.gz
gsoc2013-evolution-5bdcadd4cf57f4f9ee405a33daf7a3f91e1f6bf1.tar.zst
gsoc2013-evolution-5bdcadd4cf57f4f9ee405a33daf7a3f91e1f6bf1.zip
Use the placeholder for the "Print message..." menu item.
svn path=/trunk/; revision=4633
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");