aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Yang <sam.yang@sun.com>2005-12-21 15:21:19 +0800
committerHarry Lu <haip@src.gnome.org>2005-12-21 15:21:19 +0800
commit1a0c0848ba5634754b5f77c8c95be727bdcc5cbe (patch)
treecc142939bd36ce87dc4fa720a3a5253880339f2d
parent57884e830b43bf7a4a1eb08ce59cb8dd06a0de60 (diff)
downloadgsoc2013-evolution-1a0c0848ba5634754b5f77c8c95be727bdcc5cbe.tar.gz
gsoc2013-evolution-1a0c0848ba5634754b5f77c8c95be727bdcc5cbe.tar.zst
gsoc2013-evolution-1a0c0848ba5634754b5f77c8c95be727bdcc5cbe.zip
Fixes #324670 Respond to the change of mail/display/paned_size in gconf.
2005-12-21 Sam Yang <sam.yang@sun.com> Fixes #324670 * em-folder-view.c: (emfv_setting_notify): Respond to the change of mail/display/paned_size in gconf. svn path=/trunk/; revision=30916
-rw-r--r--mail/ChangeLog6
-rw-r--r--mail/em-folder-view.c15
2 files changed, 21 insertions, 0 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 1b9aafd1bf..556a492dfe 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -20,6 +20,12 @@
delete reference to account editor to make sure be destroyed
when it is closed.
+2005-12-21 Sam Yang <sam.yang@sun.com>
+
+ Fixes #324670
+ * em-folder-view.c: (emfv_setting_notify): Respond to the change
+ of mail/display/paned_size in gconf.
+
2005-12-20 Veerapuram Varadhan <vvaradhan@novell.com>
Fixes #246256
diff --git a/mail/em-folder-view.c b/mail/em-folder-view.c
index a1e4e45886..ecaf010f80 100644
--- a/mail/em-folder-view.c
+++ b/mail/em-folder-view.c
@@ -2562,6 +2562,7 @@ enum {
EMFV_SHOW_PREVIEW,
EMFV_SHOW_DELETED,
EMFV_THREAD_LIST,
+ EMFV_PANED_SIZE,
EMFV_SETTINGS /* last, for loop count */
};
@@ -2580,6 +2581,7 @@ static const char * const emfv_display_keys[] = {
"show_preview",
"show_deleted",
"thread_list",
+ "paned_size",
};
static GHashTable *emfv_setting_key;
@@ -2719,6 +2721,19 @@ emfv_setting_notify(GConfClient *gconf, guint cnxn_id, GConfEntry *entry, EMFold
message_list_set_threaded (emfv->list, state_gconf);
bonobo_ui_component_set_prop (emfv->uic, "/commands/ViewThreaded", "state", state_gconf ? "1" : "0", NULL);
break; }
+ case EMFV_PANED_SIZE: {
+ EMFolderBrowser *emfb = (EMFolderBrowser *)emfv;
+ int paned_size;
+
+ if (!emfb->vpane || !emfv->preview_active)
+ return;
+
+ paned_size = gconf_value_get_int (value);
+ if (paned_size == gtk_paned_get_position (GTK_PANED (emfb->vpane)))
+ return;
+
+ gtk_paned_set_position (GTK_PANED (emfb->vpane), paned_size);
+ break; }
}
}