# HG changeset patch # User nadvornik # Date 1258834131 0 # Node ID 9f3b7a089caf59918d90d0c168e7786d4e3a34ec # Parent ed19035b235029d101f8e2665791ef42950a7eee check gtk_clutter_init return value https://sourceforge.net/tracker/index.php?func=detail&aid=2899866&group_id=222125&atid=1054680 diff -r ed19035b2350 -r 9f3b7a089caf 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 @@ -779,7 +779,11 @@ DEBUG_1("%s main: gtk_init", get_exec_time()); #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