[gnome-control-center] color: Fix a typo where we set the wrong button sensitivity



commit 16b28c2a18f9e91f81c21f4db3f03c3311a3dae6
Author: Richard Hughes <richard hughsie com>
Date:   Mon Feb 18 17:22:42 2013 +0000

    color: Fix a typo where we set the wrong button sensitivity

 panels/color/cc-color-panel.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c
index 789e18d..37ac5a3 100644
--- a/panels/color/cc-color-panel.c
+++ b/panels/color/cc-color-panel.c
@@ -1880,13 +1880,13 @@ gcm_prefs_list_box_child_selected_cb (EggListBox *list_box,
   widget = GTK_WIDGET (gtk_builder_get_object (priv->builder,
                                                "toolbutton_device_default"));
   gtk_widget_set_visible (widget, !is_device && cc_color_profile_get_is_default (CC_COLOR_PROFILE (child)));
+  if (profile)
+    gtk_widget_set_sensitive (widget, !cd_profile_get_is_system_wide (profile));
 
   widget = GTK_WIDGET (gtk_builder_get_object (priv->builder,
                                                "toolbutton_device_enable"));
   gtk_widget_set_visible (widget, !is_device && !cc_color_profile_get_is_default (CC_COLOR_PROFILE (child)));
 
-  if (profile)
-    gtk_widget_set_sensitive (widget, !cd_profile_get_is_system_wide (profile));
   widget = GTK_WIDGET (gtk_builder_get_object (priv->builder,
                                                "toolbutton_device_calibrate"));
   gtk_widget_set_visible (widget, is_device);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]