[gnome-control-center] color: Only show the calibrate button when the device is selected
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] color: Only show the calibrate button when the device is selected
- Date: Thu, 3 Jan 2013 09:32:51 +0000 (UTC)
commit 540f37bebebf2024a82f2446311dee3ad8cbf9f9
Author: Richard Hughes <richard hughsie com>
Date: Thu Jan 3 09:35:07 2013 +0000
color: Only show the calibrate 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 836117e..1df6da2 100644
--- a/panels/color/cc-color-panel.c
+++ b/panels/color/cc-color-panel.c
@@ -1135,7 +1135,7 @@ gcm_prefs_devices_treeview_clicked_cb (GtkTreeSelection *selection,
gtk_widget_set_visible (widget, FALSE);
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder,
"toolbutton_device_calibrate"));
- 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_add"));
gtk_widget_set_visible (widget, device != NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]