aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2002-08-08 10:46:28 +0800
committerMichael Zucci <zucchi@src.gnome.org>2002-08-08 10:46:28 +0800
commitbb7325aeac8e1dbbd8bafe301681464bf7215833 (patch)
treefcfbf20acfd0997e0de2ccfb4812c3c8a2f6c8de /mail/folder-browser.c
parent511e3153b986168e7dd189b82b1878bd43b49981 (diff)
downloadgsoc2013-evolution-bb7325aeac8e1dbbd8bafe301681464bf7215833.tar.gz
gsoc2013-evolution-bb7325aeac8e1dbbd8bafe301681464bf7215833.tar.zst
gsoc2013-evolution-bb7325aeac8e1dbbd8bafe301681464bf7215833.zip
Force a refresh of the menu sensitivity when the thread state changes.
2002-08-08 Not Zed <NotZed@Ximian.com> * folder-browser.c (folder_browser_toggle_threads): Force a refresh of the menu sensitivity when the thread state changes. 2002-08-07 Not Zed <NotZed@Ximian.com> * folder-browser-ui.c: Added EditSelectThread to only enable threaded mode if threaded is on. For #19941. Added some macro's to simplify the table. (folder_browser_ui_set_selection_state): Implement IS_THREADED mask. svn path=/trunk/; revision=17738
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r--mail/folder-browser.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index da11702d2c..381b48c47c 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -1225,13 +1225,18 @@ folder_browser_toggle_threads (BonoboUIComponent *component,
gpointer user_data)
{
FolderBrowser *fb = user_data;
-
+ int prev_state;
+
if (type != Bonobo_UIComponent_STATE_CHANGED
|| fb->message_list == NULL)
return;
mail_config_set_thread_list (fb->uri, atoi (state));
message_list_set_threaded (fb->message_list, atoi (state));
+
+ prev_state = fb->selection_state;
+ fb->selection_state = FB_SELSTATE_UNDEFINED;
+ folder_browser_ui_set_selection_state (fb, prev_state);
}
void