Mercurial > geeqie
comparison src/main.c @ 1772:9f3b7a089caf
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 | 91ec4714b905 |
children | 56c019ed8746 |
comparison
equal
deleted
inserted
replaced
1771:ed19035b2350 | 1772:9f3b7a089caf |
---|---|
777 | 777 |
778 parse_command_line_for_debug_option(argc, argv); | 778 parse_command_line_for_debug_option(argc, argv); |
779 DEBUG_1("%s main: gtk_init", get_exec_time()); | 779 DEBUG_1("%s main: gtk_init", get_exec_time()); |
780 #ifdef HAVE_LIBCHAMPLAIN | 780 #ifdef HAVE_LIBCHAMPLAIN |
781 #ifdef HAVE_LIBCHAMPLAIN_GTK | 781 #ifdef HAVE_LIBCHAMPLAIN_GTK |
782 gtk_clutter_init(&argc, &argv); | 782 if (gtk_clutter_init(&argc, &argv) != CLUTTER_INIT_SUCCESS) |
783 { | |
784 log_printf("Can't initialize clutter-gtk.\n"); | |
785 exit(1); | |
786 } | |
783 #else | 787 #else |
784 gtk_init(&argc, &argv); | 788 gtk_init(&argc, &argv); |
785 #endif | 789 #endif |
786 #else | 790 #else |
787 gtk_init(&argc, &argv); | 791 gtk_init(&argc, &argv); |