From f6e3d603c991774938d7125d97b6e3ed10a57ddd Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Thu, 24 Aug 2000 20:20:28 +0000 Subject: Sync the right-click menu with the main menu for modifying messages svn path=/trunk/; revision=5018 --- mail/folder-browser-factory.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'mail/folder-browser-factory.c') diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c index 9dacf3c83f..c9431fbb60 100644 --- a/mail/folder-browser-factory.c +++ b/mail/folder-browser-factory.c @@ -167,6 +167,7 @@ control_activate (BonoboControl *control, BonoboUIHandler *uih, forget_passwords, folder_browser); /* Message Menu */ + /* Keep in sync with right-click menu in message-list.c:on_right_click*/ bonobo_ui_handler_menu_new_subtree ( uih, "//Message", _("_Message"), NULL, -1, @@ -220,6 +221,40 @@ control_activate (BonoboControl *control, BonoboUIHandler *uih, _("_Copy Message"), NULL, -1, BONOBO_UI_HANDLER_PIXMAP_NONE, NULL, 0, 0, (void *) copy_msg, folder_browser); + bonobo_ui_handler_menu_new_separator ( + uih, "//Message/separator3", -1); + bonobo_ui_handler_menu_new_item ( + uih, "//Message/VFolder on Subject", + _("_VFolder on Subject"), NULL, -1, + BONOBO_UI_HANDLER_PIXMAP_NONE, NULL, 0, 0, + (void *) vfolder_subject, folder_browser); + bonobo_ui_handler_menu_new_item ( + uih, "//Message/VFolder on Sender", + _("VFolder on Se_nder"), NULL, -1, + BONOBO_UI_HANDLER_PIXMAP_NONE, NULL, 0, 0, + (void *) vfolder_sender, folder_browser); + bonobo_ui_handler_menu_new_item ( + uih, "//Message/VFolder on Recipients", + _("VFolder on _Recipients"), NULL, -1, + BONOBO_UI_HANDLER_PIXMAP_NONE, NULL, 0, 0, + (void *) vfolder_recipient, folder_browser); + bonobo_ui_handler_menu_new_separator ( + uih, "//Message/separator4", -1); + bonobo_ui_handler_menu_new_item ( + uih, "//Message/Filter on Subject", + _("_Filter on Subject"), NULL, -1, + BONOBO_UI_HANDLER_PIXMAP_NONE, NULL, 0, 0, + (void *) filter_subject, folder_browser); + bonobo_ui_handler_menu_new_item ( + uih, "//Message/Filter on Sender", + _("Fi_lter on Sender"), NULL, -1, + BONOBO_UI_HANDLER_PIXMAP_NONE, NULL, 0, 0, + (void *) filter_sender, folder_browser); + bonobo_ui_handler_menu_new_item ( + uih, "//Message/Filter on Recipients", + _("Filter on Rec_ipients"), NULL, -1, + BONOBO_UI_HANDLER_PIXMAP_NONE, NULL, 0, 0, + (void *) filter_recipient, folder_browser); /* Folder Menu */ bonobo_ui_handler_menu_new_subtree ( -- cgit