Set the sensitivity of the color frame depending on the settings

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

	* background-properties-capplet.c (peditor_value_changed): Set
	the sensitivity of the color frame depending on the settings
	(peditor_value_changed): Use correct keys
This commit is contained in:
Bradford Hovinen 2001-12-17 20:01:22 +00:00 committed by Bradford Hovinen (Gdict maintainer)
parent 27097008ce
commit 0fb231b7d0
2 changed files with 12 additions and 0 deletions

View file

@ -11,6 +11,9 @@
object and use it to apply settings on the preview widget
(setup_dialog): Connect missing signal
(setup_dialog): Enabled set_guard call
(peditor_value_changed): Set the sensitivity of the color frame
depending on the settings
(peditor_value_changed): Use correct keys
* background.schema: Added wallpaper-enabled

View file

@ -186,6 +186,15 @@ peditor_value_changed (GConfPropertyEditor *peditor, const gchar *key, const GCo
if (GTK_WIDGET_REALIZED (applier_get_preview_widget (applier)))
applier_apply_prefs (applier, PREFERENCES (prefs));
if (!strcmp (key, "/background-properties/wallpaper-enabled") ||
!strcmp (key, "/background-properties/wallpaper-filename") ||
!strcmp (key, "/background-properties/wallpaper-type"))
{
GladeXML *dialog = g_object_get_data (G_OBJECT (prefs), "glade-data");
gtk_widget_set_sensitive (WID ("color_frame"),
applier_render_color_p (applier, prefs));
}
}
static void