[gnome-control-center] color: Do not set the 'Details' button for virtual profiles
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] color: Do not set the 'Details' button for virtual profiles
- Date: Tue, 29 Jul 2014 18:46:29 +0000 (UTC)
commit e9b0527b4b346e2c4ff2ae00bbf0c415186a5a85
Author: Richard Hughes <richard hughsie com>
Date: Tue Jul 29 19:45:31 2014 +0100
color: Do not set the 'Details' button for virtual profiles
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1119408
panels/color/cc-color-panel.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/panels/color/cc-color-panel.c b/panels/color/cc-color-panel.c
index c246ebe..3f20ead 100644
--- a/panels/color/cc-color-panel.c
+++ b/panels/color/cc-color-panel.c
@@ -1414,7 +1414,8 @@ gcm_prefs_profile_clicked (CcColorPanel *prefs, CdProfile *profile, CdDevice *de
/* allow getting profile info */
widget = GTK_WIDGET (gtk_builder_get_object (priv->builder,
"toolbutton_profile_view"));
- if ((s = g_find_program_in_path ("gcm-viewer")))
+ if (cd_profile_get_filename (profile) != NULL &&
+ (s = g_find_program_in_path ("gcm-viewer")) != NULL)
{
gtk_widget_set_sensitive (widget, TRUE);
g_free (s);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]