diff options
author | Ettore Perazzoli <ettore@src.gnome.org> | 2000-08-09 13:28:16 +0800 |
---|---|---|
committer | Ettore Perazzoli <ettore@src.gnome.org> | 2000-08-09 13:28:16 +0800 |
commit | 5bdcadd4cf57f4f9ee405a33daf7a3f91e1f6bf1 (patch) | |
tree | 65a76ad437bb6d907073d84cb83e11df93d7efec | |
parent | 5a6dd4803e8c7386f2d6f4f8bbef977e42b26761 (diff) | |
download | gsoc2013-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
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/folder-browser-factory.c | 12 |
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"); |