[gnome-control-center] color: Make the 'Set for all users' insensitive if the profile is already set
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] color: Make the 'Set for all users' insensitive if the profile is already set
- Date: Fri, 18 May 2012 15:05:28 +0000 (UTC)
commit 93184f16b924478be6c5f6e6719e46463cdf458e
Author: Richard Hughes <richard hughsie com>
Date: Fri May 18 15:59:01 2012 +0100
color: Make the 'Set for all users' insensitive if the profile is already set
Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=676271
panels/color/cc-color-panel.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c
index 1b446c0..9c600b7 100644
--- a/panels/color/cc-color-panel.c
+++ b/panels/color/cc-color-panel.c
@@ -1069,6 +1069,8 @@ 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, profile != NULL);
+ 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_add"));
gtk_widget_set_visible (widget, FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]