aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/folder-browser-ui.c8
2 files changed, 10 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index e825dbc664..e59297fbce 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,10 @@
2001-09-28 Jeffrey Stedfast <fejj@ximian.com>
+ * folder-browser-ui.c (folder_browser_ui_add_list): Call
+ folder_browser_toggle_threads() here after setting the value. This
+ should fix bug #6415 and if it doesn't, then this whole deal is
+ just a lost cause.
+
* mail-mt.h: Added mail_msg_cleanup() prototype.
2001-09-28 Dan Winship <danw@ximian.com>
diff --git a/mail/folder-browser-ui.c b/mail/folder-browser-ui.c
index ad2b45f452..bb07825712 100644
--- a/mail/folder-browser-ui.c
+++ b/mail/folder-browser-ui.c
@@ -335,16 +335,18 @@ folder_browser_ui_add_list (FolderBrowser *fb)
state = mail_config_get_hide_deleted ();
}
bonobo_ui_component_set_prop (uic, "/commands/HideDeleted", "state", state ? "1" : "0", NULL);
- bonobo_ui_component_add_listener (uic, "HideDeleted", folder_browser_toggle_hide_deleted,
- fb);
+ bonobo_ui_component_add_listener (uic, "HideDeleted", folder_browser_toggle_hide_deleted, fb);
/* FIXME: this kind of bypasses bonobo but seems the only way when we change components */
folder_browser_toggle_hide_deleted (uic, "", Bonobo_UIComponent_STATE_CHANGED,
state ? "1" : "0", fb);
/* Threaded toggle */
state = mail_config_get_thread_list (FOLDER_BROWSER (fb)->uri);
- bonobo_ui_component_add_listener (uic, "ViewThreaded", folder_browser_toggle_threads, fb);
bonobo_ui_component_set_prop (uic, "/commands/ViewThreaded", "state", state ? "1" : "0", NULL);
+ bonobo_ui_component_add_listener (uic, "ViewThreaded", folder_browser_toggle_threads, fb);
+ /* FIXME: this kind of bypasses bonobo but seems the only way when we change components */
+ folder_browser_toggle_threads (uic, "", Bonobo_UIComponent_STATE_CHANGED,
+ state ? "1" : "0", fb);
/* Property menu */
folder_browser_setup_property_menu (fb, fb->uicomp);