changeset 1733:91a65afb5d77

check gtk_clutter_init return value https://sourceforge.net/tracker/index.php?func=detail&aid=2899866&group_id=222125&atid=1054680
author nadvornik
date Sat, 21 Nov 2009 20:08:51 +0000
parents 68576354bf2c
children b92fc3c922ac
files src/main.c
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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