aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser-factory.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-07-09 11:06:56 +0800
committerDan Winship <danw@src.gnome.org>2000-07-09 11:06:56 +0800
commit1cc1f0a7a777be8ae409bbfbf6299167493ebddd (patch)
tree0d50552a55862fa87ec90b7b0ef112314b4212f0 /mail/folder-browser-factory.c
parent541c90527905994cdabb45d98398600a88db7b18 (diff)
downloadgsoc2013-evolution-1cc1f0a7a777be8ae409bbfbf6299167493ebddd.tar
gsoc2013-evolution-1cc1f0a7a777be8ae409bbfbf6299167493ebddd.tar.gz
gsoc2013-evolution-1cc1f0a7a777be8ae409bbfbf6299167493ebddd.tar.bz2
gsoc2013-evolution-1cc1f0a7a777be8ae409bbfbf6299167493ebddd.tar.lz
gsoc2013-evolution-1cc1f0a7a777be8ae409bbfbf6299167493ebddd.tar.xz
gsoc2013-evolution-1cc1f0a7a777be8ae409bbfbf6299167493ebddd.tar.zst
gsoc2013-evolution-1cc1f0a7a777be8ae409bbfbf6299167493ebddd.zip
Add a "Threaded Message List" item to the "View" menu.
* folder-browser-factory.c (control_activate): Add a "Threaded Message List" item to the "View" menu. * message-list.c (message_list_toggle_threads): Handler for that. (build_flat): New function to build a "flat" message list using the tree model. (message_list_regenerate): Build tree or flat message list depending on the global setting. svn path=/trunk/; revision=3999
Diffstat (limited to 'mail/folder-browser-factory.c')
-rw-r--r--mail/folder-browser-factory.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c
index 5f98e6d630..80ce55f281 100644
--- a/mail/folder-browser-factory.c
+++ b/mail/folder-browser-factory.c
@@ -61,6 +61,16 @@ control_activate (BonoboControl *control, BonoboUIHandler *uih,
folder_browser = bonobo_control_get_widget (control);
+ bonobo_ui_handler_menu_new_toggleitem (uih, "/View/Threaded",
+ N_("_Threaded Message List"),
+ NULL, -1, 0, 0, NULL, NULL);
+ bonobo_ui_handler_menu_set_toggle_state (uih, "/View/Threaded",
+ threaded_view);
+ bonobo_ui_handler_menu_set_callback (uih, "/View/Threaded",
+ message_list_toggle_threads,
+ FOLDER_BROWSER (folder_browser)->message_list,
+ NULL);
+
bonobo_ui_handler_menu_new_item (uih, "/Actions/Expunge", N_("_Expunge"),
NULL, -1,
BONOBO_UI_HANDLER_PIXMAP_STOCK,
@@ -122,7 +132,7 @@ control_deactivate (BonoboControl *control, BonoboUIHandler *uih,
{
char *toolbar_name = g_strdup_printf ("/Toolbar%d", fb->serial);
- bonobo_ui_handler_menu_remove (uih, "/File/Mail");
+ bonobo_ui_handler_menu_remove (uih, "/View/Threaded");
bonobo_ui_handler_menu_remove (uih, "/Actions/Expunge");
bonobo_ui_handler_menu_remove (uih, "/Tools/Filter Druid ...");
bonobo_ui_handler_menu_remove (uih, "/Tools/Virtual Folder Druid ...");