[evolution-patches] [Mailer] Message-list pane adjusts its height with paned_size's change in gconf
- From: sam yang <Sam Yang Sun COM>
- To: evolution-patches gnome org
- Subject: [evolution-patches] [Mailer] Message-list pane adjusts its height with paned_size's change in gconf
- Date: Wed, 21 Dec 2005 13:26:53 +0800
Hi, partha and all
The attached patch fixes Bug #324670. Evolution now can respond
correctly to the change of mail/display/paned_size, and message-list
pane can adjust its height when paned_size changes. So, it helps to
implement central management over evolution.
Please review it.
Thanks,
Sam Yang
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/mail/ChangeLog,v
retrieving revision 1.3751
diff -u -r1.3751 ChangeLog
--- ChangeLog 20 Dec 2005 10:06:39 -0000 1.3751
+++ ChangeLog 21 Dec 2005 03:24:57 -0000
@@ -1,3 +1,8 @@
+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
Index: em-folder-view.c
===================================================================
RCS file: /cvs/gnome/evolution/mail/em-folder-view.c,v
retrieving revision 1.138
diff -u -r1.138 em-folder-view.c
--- em-folder-view.c 19 Dec 2005 08:11:24 -0000 1.138
+++ em-folder-view.c 21 Dec 2005 03:24:57 -0000
@@ -2562,6 +2562,7 @@
EMFV_SHOW_PREVIEW,
EMFV_SHOW_DELETED,
EMFV_THREAD_LIST,
+ EMFV_PANED_SIZE,
EMFV_SETTINGS /* last, for loop count */
};
@@ -2580,6 +2581,7 @@
"show_preview",
"show_deleted",
"thread_list",
+ "paned_size",
};
static GHashTable *emfv_setting_key;
@@ -2718,6 +2720,19 @@
camel_object_state_write (emfv->folder);
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; }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]