aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/folder-browser-factory.c12
2 files changed, 17 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 24a89b8b2f..967113f7bf 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2000-08-09 Ettore Perazzoli <ettore@helixcode.com>
+
+ * folder-browser-factory.c (control_activate): Create a "print
+ message" menu item.
+
2000-08-09 Jeffrey Stedfast <fejj@helixcode.com>
* message-list.c (message_list_init): Attached a double_click
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");