diff options
author | Bruno Coudoin <bcoudoin@src.gnome.org> | 2004-02-16 23:44:40 (GMT) |
---|---|---|
committer | Bruno Coudoin <bcoudoin@src.gnome.org> | 2004-02-16 23:44:40 (GMT) |
commit | 2ca4e6470125f02779dc1bb30ea6104e24ca9c43 (patch) | |
tree | 4d7258bc0589e9bbd3dbbee74b308468cd1e0d62 /src/gcompris/gameutil.c | |
parent | d52fcb2c456ce7204cfbfbefb547da1064c1c7a8 (diff) |
chronos added by Jose.R_5_2
linha verde theme added by Jose
* configure.in: release 5.2
* gcompris.spec.in: added new sounds
* po/POTFILES.in: added chronos
* src/gcompris/gameutil.c: (gcompris_load_pixmap): changed to display a dialog box instead of a direct exit when an image is missing.
* src/gcompris/log.c: (gcompris_log_end): fixed to compile with old gcc
Diffstat (limited to 'src/gcompris/gameutil.c')
-rw-r--r-- | src/gcompris/gameutil.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/gcompris/gameutil.c b/src/gcompris/gameutil.c index ea4a1f9..85c68de 100644 --- a/src/gcompris/gameutil.c +++ b/src/gcompris/gameutil.c @@ -1,6 +1,6 @@ /* gcompris - gameutil.c * - * Time-stamp: <2004/02/07 02:42:55 bcoudoin> + * Time-stamp: <2004/02/16 00:38:50 bcoudoin> * * Copyright (C) 2000 Bruno Coudoin * @@ -121,7 +121,15 @@ GdkPixbuf *gcompris_load_pixmap(char *pixmapfile) filename = g_strdup_printf("%s/%s", PACKAGE_DATA_DIR, pixmapfile); if (!g_file_test ((filename), G_FILE_TEST_EXISTS)) { - g_error (_("Couldn't find file %s !"), filename); + g_warning (_("Couldn't find file %s !"), filename); + + char *str = g_strdup_printf("%s\n%s\n%s\n%s", + _("Couldn't find file"), + pixmapfile, + _("This activity is incomplete."), + _("Exit it and report\nus the problem")); + gcompris_dialog (str, NULL); + g_free(str); } pixmap = gdk_pixbuf_new_from_file (filename, NULL); |