aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser-ui.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2003-03-24 21:27:32 +0800
committerMichael Zucci <zucchi@src.gnome.org>2003-03-24 21:27:32 +0800
commit33e87f5331e8cbdd3b3b9713bbe7446882e3ca37 (patch)
treeaedcf6d61636003f743d2b37fa905a7f6315b266 /mail/folder-browser-ui.c
parented0a0ca71623bdfdca4afe145038995c4bf83560 (diff)
downloadgsoc2013-evolution-33e87f5331e8cbdd3b3b9713bbe7446882e3ca37.tar
gsoc2013-evolution-33e87f5331e8cbdd3b3b9713bbe7446882e3ca37.tar.gz
gsoc2013-evolution-33e87f5331e8cbdd3b3b9713bbe7446882e3ca37.tar.bz2
gsoc2013-evolution-33e87f5331e8cbdd3b3b9713bbe7446882e3ca37.tar.lz
gsoc2013-evolution-33e87f5331e8cbdd3b3b9713bbe7446882e3ca37.tar.xz
gsoc2013-evolution-33e87f5331e8cbdd3b3b9713bbe7446882e3ca37.tar.zst
gsoc2013-evolution-33e87f5331e8cbdd3b3b9713bbe7446882e3ca37.zip
Load per-folder setting of show_preview from meta data.
2003-03-25 Not Zed <NotZed@Ximian.com> * folder-browser-ui.c (folder_browser_ui_add_global): Load per-folder setting of show_preview from meta data. (folder_browser_ui_add_list): Same, for thread_list. * mail-tools.c (mail_tool_get_meta_data) (mail_tool_delete_meta_data): helpers to lookup/delete meta data. * mail-config.c (mail_config_uri_deleted): delete the meta-data for the folder. * folder-browser.c (folder_browser_reload): dont reload the uri if we're in the process of loading it still. (folder_browser_new): load the folder meta data before loading the folder. (folder_browser_toggle_preview): (folder_browser_toggle_threads): save change to meta-data. (got_folder): Load the metadata if we have a folder to set, and the meta-data has changed from initislisation. svn path=/trunk/; revision=20478
Diffstat (limited to 'mail/folder-browser-ui.c')
-rw-r--r--mail/folder-browser-ui.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/mail/folder-browser-ui.c b/mail/folder-browser-ui.c
index c265ad62c3..1bb4cbf3c9 100644
--- a/mail/folder-browser-ui.c
+++ b/mail/folder-browser-ui.c
@@ -577,6 +577,9 @@ folder_browser_ui_add_list (FolderBrowser *fb)
/* Threaded toggle */
state = gconf_client_get_bool (gconf, "/apps/evolution/mail/display/thread_list", NULL);
+ if (fb->meta)
+ state = e_meta_get_bool(fb->meta, "thread_list", state);
+
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);
message_list_set_threaded (fb->message_list, state);
@@ -627,6 +630,8 @@ folder_browser_ui_add_global (FolderBrowser *fb)
/* (Pre)view toggle */
show_preview = gconf_client_get_bool (gconf, "/apps/evolution/mail/display/show_preview", NULL);
+ if (fb->meta)
+ show_preview = e_meta_get_bool(fb->meta, "show_preview", show_preview);
bonobo_ui_component_set_prop (uic, "/commands/ViewPreview", "state", show_preview ? "1" : "0", NULL);
folder_browser_set_message_preview (fb, show_preview);