[gnome-control-center] color: Do not show the profile warning label if there are no profiles



commit 4e33954d94e481b5d1830e38202c368a558a30d9
Author: Richard Hughes <richard hughsie com>
Date:   Sun Feb 3 23:29:03 2013 +0000

    color: Do not show the profile warning label if there are no profiles
    
    This can happen if gnome-settings-daemon is not running or the device type is a
    camera.

 panels/color/cc-color-panel.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c
index 398c8c7..9e1664d 100644
--- a/panels/color/cc-color-panel.c
+++ b/panels/color/cc-color-panel.c
@@ -690,6 +690,7 @@ gcm_prefs_add_profiles_suitable_for_devices (CcColorPanel *prefs,
   GPtrArray *profile_array = NULL;
   GtkTreeIter iter;
   GtkListStore *list_store;
+  GtkWidget *widget;
   guint i;
   CcColorPanelPrivate *priv = prefs->priv;
 
@@ -704,6 +705,10 @@ gcm_prefs_add_profiles_suitable_for_devices (CcColorPanel *prefs,
                                    gcm_prefs_combo_sort_func_cb,
                                    list_store, NULL);
 
+  widget = GTK_WIDGET (gtk_builder_get_object (prefs->priv->builder,
+                                               "label_assign_warning"));
+  gtk_widget_hide (widget);
+
   /* get profiles */
   profile_array = cd_client_get_profiles_sync (priv->client,
                                                priv->cancellable,



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