[gnome-color-manager] Still print the per-output properties even if the screen does not have a _ICC_PROFILE atom



commit bc28d76c140ea69278330ebbc9c2bfb8e9905906
Author: Richard Hughes <richard hughsie com>
Date:   Tue Nov 10 09:27:51 2009 +0000

    Still print the per-output properties even if the screen does not have a _ICC_PROFILE atom

 src/gcm-inspect.c |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/gcm-inspect.c b/src/gcm-inspect.c
index 32c48a1..5482726 100644
--- a/src/gcm-inspect.c
+++ b/src/gcm-inspect.c
@@ -99,12 +99,13 @@ gcm_inspect_show_x11_atoms (void)
 	if (!ret) {
 		egg_warning ("failed to get XServer profile data: %s", error->message);
 		g_error_free (error);
-		goto out;
+		/* non-fatal */
+		error = NULL;
+	} else {
+		/* TRANSLATORS: the root window of all the screens */
+		gcm_inspect_print_data_info (_("Root window profile (deprecated):"), data, length);
 	}
 
-	/* TRANSLATORS: the root window of all the screens */
-	gcm_inspect_print_data_info (_("Root window profile (deprecated):"), data, length);
-
 	/* get screen */
 	rr_screen = gnome_rr_screen_new (gdk_screen_get_default (), NULL, NULL, &error);
 	if (rr_screen == NULL) {



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