# HG changeset patch
# User nadvornik
# Date 1258834131 0
# Node ID 91a65afb5d774619e5a3ab7bc885f25d441ebf9e
# Parent  68576354bf2c8b3225af54f7753e2b9aa72eaf0a
check gtk_clutter_init return value

https://sourceforge.net/tracker/index.php?func=detail&aid=2899866&group_id=222125&atid=1054680

diff -r 68576354bf2c -r 91a65afb5d77 src/main.c
--- a/src/main.c	Wed Nov 18 12:34:30 2009 +0000
+++ b/src/main.c	Sat Nov 21 20:08:51 2009 +0000
@@ -772,7 +772,11 @@
 	 
 #ifdef HAVE_LIBCHAMPLAIN
 #ifdef HAVE_LIBCHAMPLAIN_GTK
-	gtk_clutter_init(&argc, &argv);
+	if (gtk_clutter_init(&argc, &argv) != CLUTTER_INIT_SUCCESS)
+		{
+		log_printf("Can't initialize clutter-gtk.\n");
+		exit(1);
+		}
 #else
 	gtk_init(&argc, &argv);
 #endif