diff options
author | Bruno Coudoin <bruno.coudoin@free.fr> | 2009-10-06 20:42:15 (GMT) |
---|---|---|
committer | Bruno Coudoin <bruno.coudoin@free.fr> | 2009-10-06 20:43:53 (GMT) |
commit | eceba83999d4209f318f504e8bedf35f1405f5d4 (patch) | |
tree | 0ac4d1543fa1dc9f2844af440c36010eee99c9e0 /src/gcompris | |
parent | 38522332c095a1bee513f6c0f2fcacc4f296bff2 (diff) |
No more use binreloc on windows, it is useless.
Added an error message about why we fail to load the first pixmap.
This is very usefull to know why we fail especialy if the gnome pixbuf
loader is missing.
Diffstat (limited to 'src/gcompris')
-rw-r--r-- | src/gcompris/gcompris.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/gcompris/gcompris.c b/src/gcompris/gcompris.c index d4208a5..9ff1251 100644 --- a/src/gcompris/gcompris.c +++ b/src/gcompris/gcompris.c @@ -668,19 +668,18 @@ static void setup_window () * ------------------------ */ icon_file = g_strconcat(properties->system_icon_dir, "/gcompris.png", NULL); - if (!g_file_test (icon_file, G_FILE_TEST_EXISTS)) { - /* Now check if this file is on the net */ - icon_file = gc_net_get_url_from_file("gcompris.png", NULL); - } if(!icon_file) g_warning ("Couldn't find file %s !", icon_file); - icon_pixbuf = gdk_pixbuf_new_from_file(icon_file,NULL); + GError *error = NULL; + icon_pixbuf = gdk_pixbuf_new_from_file(icon_file, &error); if (!icon_pixbuf) { - g_warning ("Failed to load pixbuf file: %s\n", - icon_file); + g_warning ("Failed to load pixbuf file: %s / %s\n", + icon_file, error->message); + g_error_free (error); + } g_free(icon_file); |