don't try to set shading and options in GConf when we're dealing with a

2008-02-14  Jens Granseuer  <jensgr@gmx.net>

	* appearance-desktop.c: (wp_scale_type_changed): don't try to set shading
	and options in GConf when we're dealing with a read-only source (bug
	#516328)

svn path=/trunk/; revision=8485
This commit is contained in:
Jens Granseuer 2008-02-14 18:38:37 +00:00 committed by Jens Granseuer
parent 7456bf130d
commit be47506bdf
2 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,9 @@
2008-02-14 Jens Granseuer <jensgr@gmx.net>
* appearance-desktop.c: (wp_scale_type_changed): don't try to set shading
and options in GConf when we're dealing with a read-only source (bug
#516328)
2008-02-11 Matthias Clasen <mclasen@redhat.com>
Fixes bug #511306

View file

@ -385,7 +385,8 @@ wp_scale_type_changed (GtkComboBox *combobox,
if (pixbuf != NULL)
g_object_unref (pixbuf);
gconf_client_set_string (data->client, WP_OPTIONS_KEY, item->options, NULL);
if (gconf_client_key_is_writable (data->client, WP_OPTIONS_KEY, NULL)
gconf_client_set_string (data->client, WP_OPTIONS_KEY, item->options, NULL);
}
static void
@ -427,8 +428,9 @@ wp_shade_type_changed (GtkWidget *combobox,
if (pixbuf != NULL)
g_object_unref (pixbuf);
gconf_client_set_string (data->client, WP_SHADING_KEY,
item->shade_type, NULL);
if (gconf_client_key_is_writable (data->client, WP_SHADING_KEY, NULL)
gconf_client_set_string (data->client, WP_SHADING_KEY,
item->shade_type, NULL);
}
static void