diff options
Diffstat (limited to 'mail/folder-browser-ui.c')
-rw-r--r-- | mail/folder-browser-ui.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mail/folder-browser-ui.c b/mail/folder-browser-ui.c index ca60821ae4..ad2b45f452 100644 --- a/mail/folder-browser-ui.c +++ b/mail/folder-browser-ui.c @@ -343,10 +343,8 @@ folder_browser_ui_add_list (FolderBrowser *fb) /* Threaded toggle */ state = mail_config_get_thread_list (FOLDER_BROWSER (fb)->uri); - 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); + bonobo_ui_component_set_prop (uic, "/commands/ViewThreaded", "state", state ? "1" : "0", NULL); /* Property menu */ folder_browser_setup_property_menu (fb, fb->uicomp); |