From bb7325aeac8e1dbbd8bafe301681464bf7215833 Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 8 Aug 2002 02:46:28 +0000 Subject: Force a refresh of the menu sensitivity when the thread state changes. 2002-08-08 Not Zed * folder-browser.c (folder_browser_toggle_threads): Force a refresh of the menu sensitivity when the thread state changes. 2002-08-07 Not Zed * 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 --- mail/folder-browser.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mail/folder-browser.c') 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 -- cgit