diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-01-11 07:28:15 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-01-11 07:28:15 +0800 |
commit | 18b44d230e3a9a687d1f581aa00ebd52c0a4d69a (patch) | |
tree | df598de4f81c97ebc24b8c82138423f327caa8c6 /mail/folder-browser-ui.c | |
parent | 17bdb9c55fc2f204ec25757cce7937dc03b89dc2 (diff) | |
download | gsoc2013-evolution-18b44d230e3a9a687d1f581aa00ebd52c0a4d69a.tar.gz gsoc2013-evolution-18b44d230e3a9a687d1f581aa00ebd52c0a4d69a.tar.zst gsoc2013-evolution-18b44d230e3a9a687d1f581aa00ebd52c0a4d69a.zip |
We also need to call message_list_set_hidedeleted() here so that any
2003-01-10 Jeffrey Stedfast <fejj@ximian.com>
* folder-browser-ui.c (folder_browser_ui_add_list): We also need
to call message_list_set_hidedeleted() here so that any
deactivated folder controls will change to the currently set state
when re-activated.
(folder_browser_ui_add_global): Same for show_preview.
* folder-browser.c (hide_deleted_changed): Don't call
message_list_set_hidedeleted() here.
(folder_browser_toggle_hide_deleted): Instead, call it here. This
way we get a faster "response time". Also, this will make it so
that not all folder controls will regen their message-list at the
same time.
(folder_browser_toggle_preview): Same idea as the hide-deleted
changes.
(show_preview_changed): See above.
* mail-config-druid.c (make_account): Default the new account to
enabled.
(wizard_finish_cb): Don't set enabled here.
svn path=/trunk/; revision=19417
Diffstat (limited to 'mail/folder-browser-ui.c')
-rw-r--r-- | mail/folder-browser-ui.c | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/mail/folder-browser-ui.c b/mail/folder-browser-ui.c index 22f305df25..cf5a689304 100644 --- a/mail/folder-browser-ui.c +++ b/mail/folder-browser-ui.c @@ -558,25 +558,20 @@ folder_browser_ui_add_list (FolderBrowser *fb) gconf = gconf_client_get_default (); if (fb->sensitise_state) { - g_hash_table_destroy(fb->sensitise_state); + g_hash_table_destroy (fb->sensitise_state); fb->sensitise_state = NULL; } ui_add (fb, "list", list_verbs, list_pixcache); /* Hide Deleted */ - if (fb->folder && (fb->folder->folder_flags & CAMEL_FOLDER_IS_TRASH)) { - fbui_sensitise_item (fb, "HideDeleted", FALSE); - state = FALSE; - } else { - state = !gconf_client_get_bool (gconf, "/apps/evolution/mail/display/show_deleted", NULL); - } - + state = !gconf_client_get_bool (gconf, "/apps/evolution/mail/display/show_deleted", NULL); 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); - /* 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); + if (!(fb->folder && (fb->folder->folder_flags & CAMEL_FOLDER_IS_TRASH))) + message_list_set_hidedeleted (fb->message_list, state); + else + fbui_sensitise_item (fb, "HideDeleted", FALSE); /* Threaded toggle */ state = mail_config_get_thread_list (FOLDER_BROWSER (fb)->uri); @@ -621,10 +616,10 @@ folder_browser_ui_add_global (FolderBrowser *fb) /* (Pre)view toggle */ show_preview = gconf_client_get_bool (gconf, "/apps/evolution/mail/display/show_preview", NULL); bonobo_ui_component_set_prop (uic, "/commands/ViewPreview", "state", show_preview ? "1" : "0", NULL); + folder_browser_set_message_preview (fb, show_preview); /* listen for user-changes */ bonobo_ui_component_add_listener (uic, "ViewPreview", folder_browser_toggle_preview, fb); - folder_browser_set_message_preview (fb, show_preview); /* Stop button */ /* TODO: Go through cache, but we can't becaus eof mail-mt.c:set_stop at the moment */ |