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.
This commit is contained in:
parent
b57f3170d1
commit
4e33954d94
1 changed files with 5 additions and 0 deletions
|
@ -690,6 +690,7 @@ gcm_prefs_add_profiles_suitable_for_devices (CcColorPanel *prefs,
|
||||||
GPtrArray *profile_array = NULL;
|
GPtrArray *profile_array = NULL;
|
||||||
GtkTreeIter iter;
|
GtkTreeIter iter;
|
||||||
GtkListStore *list_store;
|
GtkListStore *list_store;
|
||||||
|
GtkWidget *widget;
|
||||||
guint i;
|
guint i;
|
||||||
CcColorPanelPrivate *priv = prefs->priv;
|
CcColorPanelPrivate *priv = prefs->priv;
|
||||||
|
|
||||||
|
@ -704,6 +705,10 @@ gcm_prefs_add_profiles_suitable_for_devices (CcColorPanel *prefs,
|
||||||
gcm_prefs_combo_sort_func_cb,
|
gcm_prefs_combo_sort_func_cb,
|
||||||
list_store, NULL);
|
list_store, NULL);
|
||||||
|
|
||||||
|
widget = GTK_WIDGET (gtk_builder_get_object (prefs->priv->builder,
|
||||||
|
"label_assign_warning"));
|
||||||
|
gtk_widget_hide (widget);
|
||||||
|
|
||||||
/* get profiles */
|
/* get profiles */
|
||||||
profile_array = cd_client_get_profiles_sync (priv->client,
|
profile_array = cd_client_get_profiles_sync (priv->client,
|
||||||
priv->cancellable,
|
priv->cancellable,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue