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



commit d3bb38c6d0a63fe1077174826a39ed5c6e9c0381
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 cf26897..c45eba4 100644
--- a/src/gcm-viewer.c
+++ b/src/gcm-viewer.c
@@ -1654,7 +1654,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]