[gnome-control-center] color: Ensure the profile system-wide button is visible



commit 2606d607b280666727811fb551ddbfee4edea3b5
Author: Richard Hughes <richard hughsie com>
Date:   Tue Feb 21 19:23:26 2012 +0000

    color: Ensure the profile system-wide button is visible
    
    Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=670513

 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 93faaa5..319385e 100644
--- a/panels/color/cc-color-panel.c
+++ b/panels/color/cc-color-panel.c
@@ -1050,7 +1050,7 @@ gcm_prefs_devices_treeview_clicked_cb (GtkTreeSelection *selection,
 
   widget = GTK_WIDGET (gtk_builder_get_object (priv->builder,
                                                "toolbutton_device_default"));
-  gtk_widget_set_visible (widget, FALSE);
+  gtk_widget_set_visible (widget, profile != NULL);
   widget = GTK_WIDGET (gtk_builder_get_object (priv->builder,
                                                "toolbutton_device_add"));
   gtk_widget_set_visible (widget, FALSE);



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