From 4e33954d94e481b5d1830e38202c368a558a30d9 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Sun, 3 Feb 2013 23:29:03 +0000 Subject: [PATCH] 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 file changed, 5 insertions(+) diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c index 398c8c71a..9e1664d53 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,