From 12ab0a8e8587d4bc6a732c7c84ef2826fcbecf91 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 28 Sep 2001 20:12:37 +0000 Subject: Call folder_browser_toggle_threads() here after setting the value. This 2001-09-28 Jeffrey Stedfast * 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. svn path=/trunk/; revision=13226 --- mail/ChangeLog | 5 +++++ mail/folder-browser-ui.c | 8 +++++--- 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 + * 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 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); -- cgit v1.2.3