[gnome-color-manager] Fix compile with newer versions of clutter



commit 8acd939276fff4466c26bfaef5fa9b2528039529
Author: Richard Hughes <richard hughsie com>
Date:   Thu Nov 24 21:29:13 2011 +0000

    Fix compile with newer versions of clutter

 src/gcm-viewer.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-viewer.c b/src/gcm-viewer.c
index a84efed..62e85d9 100644
--- a/src/gcm-viewer.c
+++ b/src/gcm-viewer.c
@@ -1713,7 +1713,8 @@ main (int argc, char **argv)
 
 	gtk_init (&argc, &argv);
 #ifdef HAVE_CLUTTER
-	gtk_clutter_init (&argc, &argv);
+	if (gtk_clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS)
+		return 1;
 #endif
 
 	context = g_option_context_new ("gnome-color-manager profile viewer");



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