From 042ba3ee7ee150deb11c1e03076320a4d44c2c37 Mon Sep 17 00:00:00 2001 From: Nicholas Miell Date: Mon, 26 Nov 2007 11:28:54 +0000 Subject: ** Fix for bug #216485 Edit->Select thread menu fix and improvement. 2007-11-26 Nicholas Miell ** Fix for bug #216485 Edit->Select thread menu fix and improvement. * mail/em-folder-browser.c: (emfb_edit_select_subthread): new function, (emfb_enable_map, emfb_verbs) hook it up * mail/message-list.c: (select_thread): new function based on thread_select_foreach, (thread_select_foreach): remove the logic now in select_thread, (message_list_select_thread): use select_thread, (subthread_select_foreach): new function, (message_list_select_subthread): new function * mail/message-list.h: (message_list_select_subthread): add prototype * ui/evolution-mail-list.xml Add Select Message Subthread svn path=/trunk/; revision=34585 --- mail/em-folder-browser.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'mail/em-folder-browser.c') diff --git a/mail/em-folder-browser.c b/mail/em-folder-browser.c index 8f479a15e1..5253101c67 100644 --- a/mail/em-folder-browser.c +++ b/mail/em-folder-browser.c @@ -150,6 +150,7 @@ static const EMFolderViewEnable emfb_enable_map[] = { { "EditInvertSelection", EM_POPUP_SELECT_FOLDER }, { "EditSelectAll", EM_POPUP_SELECT_FOLDER }, { "EditSelectThread", EM_FOLDER_VIEW_SELECT_THREADED }, + { "EditSelectSubthread", EM_FOLDER_VIEW_SELECT_THREADED }, { "FolderExpunge", EM_POPUP_SELECT_FOLDER }, { "FolderCopy", EM_POPUP_SELECT_FOLDER }, { "FolderMove", EM_POPUP_SELECT_FOLDER }, @@ -1299,6 +1300,14 @@ emfb_edit_select_thread(BonoboUIComponent *uid, void *data, const char *path) message_list_select_thread(emfv->list); } +static void +emfb_edit_select_subthread(BonoboUIComponent *uid, void *data, const char *path) +{ + EMFolderView *emfv = data; + + message_list_select_subthread (emfv->list); +} + static void emfb_folder_properties(BonoboUIComponent *uid, void *data, const char *path) { @@ -1555,6 +1564,7 @@ static BonoboUIVerb emfb_verbs[] = { BONOBO_UI_UNSAFE_VERB ("EditInvertSelection", emfb_edit_invert_selection), BONOBO_UI_UNSAFE_VERB ("EditSelectAll", emfb_edit_select_all), BONOBO_UI_UNSAFE_VERB ("EditSelectThread", emfb_edit_select_thread), + BONOBO_UI_UNSAFE_VERB ("EditSelectSubthread", emfb_edit_select_subthread), BONOBO_UI_UNSAFE_VERB ("ChangeFolderProperties", emfb_folder_properties), BONOBO_UI_UNSAFE_VERB ("FolderExpunge", emfb_folder_expunge), /* HideDeleted is a toggle */ -- cgit