[gnome-control-center] color: Only show the add button when the device is selected



commit f9584966d8bce3c22e80cfc53d5f28ffc8a4cb46
Author: Richard Hughes <richard hughsie com>
Date:   Thu Jan 3 09:35:21 2013 +0000

    color: Only show the add button when the device is selected

 panels/color/cc-color-panel.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c
index 1df6da2..a964793 100644
--- a/panels/color/cc-color-panel.c
+++ b/panels/color/cc-color-panel.c
@@ -1138,7 +1138,7 @@ gcm_prefs_devices_treeview_clicked_cb (GtkTreeSelection *selection,
   gtk_widget_set_visible (widget, profile == NULL);
   widget = GTK_WIDGET (gtk_builder_get_object (priv->builder,
                                                "toolbutton_profile_add"));
-  gtk_widget_set_visible (widget, device != NULL);
+  gtk_widget_set_visible (widget, profile == NULL);
   widget = GTK_WIDGET (gtk_builder_get_object (priv->builder,
                                                "toolbutton_profile_view"));
   gtk_widget_set_visible (widget, profile != NULL);



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