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
This commit is contained in:
Sam Yang
2005-12-21 07:21:19 +00:00
committed by Harry Lu
parent 57884e830b
commit 1a0c0848ba
2 changed files with 21 additions and 0 deletions

View File

@ -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

View File

@ -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; }
}
}