[gnome-control-center] color: Allow the user to remove automatically added profiles
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] color: Allow the user to remove automatically added profiles
- Date: Thu, 24 Jan 2013 16:48:22 +0000 (UTC)
commit 98fde07657cc4f066d9ddf29f1d90041f48d4ead
Author: Richard Hughes <richard hughsie com>
Date: Thu Jan 24 16:47:54 2013 +0000
color: Allow the user to remove automatically added profiles
You need to be running colord from git master for this feature to work.
panels/color/cc-color-panel.c | 22 ----------------------
1 files changed, 0 insertions(+), 22 deletions(-)
---
diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c
index beeec12..398c8c7 100644
--- a/panels/color/cc-color-panel.c
+++ b/panels/color/cc-color-panel.c
@@ -1219,7 +1219,6 @@ static void
gcm_prefs_profile_clicked (CcColorPanel *prefs, CdProfile *profile, CdDevice *device)
{
GtkWidget *widget;
- CdDeviceRelation relation;
gchar *s;
CcColorPanelPrivate *priv = prefs->priv;
@@ -1227,27 +1226,6 @@ gcm_prefs_profile_clicked (CcColorPanel *prefs, CdProfile *profile, CdDevice *de
g_debug ("selected profile = %s",
cd_profile_get_filename (profile));
-
- /* find the profile relationship */
- relation = cd_device_get_profile_relation_sync (device,
- profile,
- NULL, NULL);
-
- /* we can only remove hard relationships */
- widget = GTK_WIDGET (gtk_builder_get_object (priv->builder,
- "toolbutton_profile_remove"));
- if (relation == CD_DEVICE_RELATION_HARD)
- {
- gtk_widget_set_tooltip_text (widget, "");
- gtk_widget_set_sensitive (widget, TRUE);
- }
- else
- {
- /* TRANSLATORS: this is when an auto-added profile cannot be removed */
- gtk_widget_set_tooltip_text (widget, _("Cannot remove automatically added profile"));
- gtk_widget_set_sensitive (widget, FALSE);
- }
-
/* allow getting profile info */
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder,
"toolbutton_profile_view"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]