diff options
Diffstat (limited to 'mail/folder-browser-factory.c')
-rw-r--r-- | mail/folder-browser-factory.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mail/folder-browser-factory.c b/mail/folder-browser-factory.c index 86a51a0d59..c398e8b748 100644 --- a/mail/folder-browser-factory.c +++ b/mail/folder-browser-factory.c @@ -87,10 +87,14 @@ control_activate (BonoboControl *control, folder_browser = bonobo_control_get_widget (control); folder_browser_set_ui_component (FOLDER_BROWSER (folder_browser), uic); + bonobo_ui_component_freeze (uic, NULL); + folder_browser_ui_add_global (fb); folder_browser_ui_add_list (fb); folder_browser_ui_add_message (fb); + bonobo_ui_component_thaw (uic, NULL); + folder_browser_set_shell_view(fb, fb_get_svi (control)); if (fb->folder) @@ -102,8 +106,12 @@ control_deactivate (BonoboControl *control, BonoboUIComponent *uic, FolderBrowser *fb) { + bonobo_ui_component_freeze (uic, NULL); + folder_browser_ui_rm_list (fb); folder_browser_ui_rm_all (fb); + + bonobo_ui_component_thaw (uic, NULL); if (fb->folder) mail_sync_folder (fb->folder, NULL, NULL); |