Mercurial > geeqie
changeset 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 | ed19035b2350 |
children | 2ae81598b254 |
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 @@ -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