aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser-ui.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-01-25 06:56:49 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-01-25 06:56:49 +0800
commitcc35ce98a7a85b09dca062f7a781d7718cd17db2 (patch)
treed8280cf3eebfea13d8f8230766190200f348dc44 /mail/folder-browser-ui.c
parentbe30d82733a1f8afda0a496b43a9f14e512ad6a6 (diff)
downloadgsoc2013-evolution-cc35ce98a7a85b09dca062f7a781d7718cd17db2.tar
gsoc2013-evolution-cc35ce98a7a85b09dca062f7a781d7718cd17db2.tar.gz
gsoc2013-evolution-cc35ce98a7a85b09dca062f7a781d7718cd17db2.tar.bz2
gsoc2013-evolution-cc35ce98a7a85b09dca062f7a781d7718cd17db2.tar.lz
gsoc2013-evolution-cc35ce98a7a85b09dca062f7a781d7718cd17db2.tar.xz
gsoc2013-evolution-cc35ce98a7a85b09dca062f7a781d7718cd17db2.tar.zst
gsoc2013-evolution-cc35ce98a7a85b09dca062f7a781d7718cd17db2.zip
Set the paned_size here.
2003-01-24 Jeffrey Stedfast <fejj@ximian.com> * folder-browser-ui.c (folder_browser_ui_add_global): Set the paned_size here. * folder-browser.c (folder_browser_gui_init): Don't bother connecting to the hide-deleted, message-display-style, paned-size, nor show-preview gconf notifications anymore, since we can just set them when the view becomes active again in folder-browser-ui.c. Cuts down on extra overhead. (folder_browser_destroy): No need to disconnect from those notifications anymore either. svn path=/trunk/; revision=19626
Diffstat (limited to 'mail/folder-browser-ui.c')
-rw-r--r--mail/folder-browser-ui.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/mail/folder-browser-ui.c b/mail/folder-browser-ui.c
index 24916b59bf..6680d8dd2a 100644
--- a/mail/folder-browser-ui.c
+++ b/mail/folder-browser-ui.c
@@ -607,6 +607,7 @@ folder_browser_ui_add_global (FolderBrowser *fb)
BonoboUIComponent *uic = fb->uicomp;
gboolean show_preview;
GConfClient *gconf;
+ int paned_size;
if (fb->sensitise_state) {
g_hash_table_destroy (fb->sensitise_state);
@@ -617,6 +618,14 @@ folder_browser_ui_add_global (FolderBrowser *fb)
gconf = gconf_client_get_default ();
+ /* (Pre)view pane size (do this first because it affects the
+ preview settings - see folder_browser_set_message_preview()
+ internals for details) */
+ paned_size = gconf_client_get_int (gconf, "/apps/evolution/mail/display/paned_size", NULL);
+ g_signal_handler_block (fb->vpaned, fb->paned_resize_id);
+ gtk_paned_set_position (GTK_PANED (fb->vpaned), paned_size);
+ g_signal_handler_unblock (fb->vpaned, fb->paned_resize_id);
+
/* (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);