Apply settings after commiting the change set

2001-12-17  Bradford Hovinen  <hovinen@ximian.com>

	* background-properties-capplet.c (dialog_button_clicked_cb):
	Apply settings after commiting the change set
This commit is contained in:
Bradford Hovinen 2001-12-17 17:34:38 +00:00 committed by Bradford Hovinen (Gdict maintainer)
parent f8dbd8090f
commit 756102ee52
2 changed files with 7 additions and 2 deletions

View file

@ -2,6 +2,8 @@
* background-properties-capplet.c (setup_dialog): Don't hide
opacity controls
(dialog_button_clicked_cb): Apply settings after commiting the
change set
* background.schema: Added wallpaper-enabled

View file

@ -250,10 +250,13 @@ create_dialog (void)
static void
dialog_button_clicked_cb (GnomeDialog *dialog, gint button_number, GConfChangeSet *changeset)
{
if (button_number == 0)
if (button_number == 0) {
gconf_engine_commit_change_set (gconf_engine_get_default (), changeset, TRUE, NULL);
else if (button_number == 1)
apply_settings ();
}
else if (button_number == 1) {
gnome_dialog_close (dialog);
}
}
int