Warning when saving a GdkPixbuf to file - why does it occur?

704 views Asked by At

When I save GdkPixbuf contents into a file (which is supposed to be created, path determined via dialog window) using gdk_pixbuf_save(picturePixbuf, currentFileName, "bmp", &error, NULL); I get a warning:

(app.exe:2012): Gtk-WARNING **: Unable to retrieve the file info for `file:///C:/file.png': Error stating file 'C:\file.png': No such file or directory

Why? The file is actually being created.

1

There are 1 answers

0
Federico Mena-Quintero On

You are running into this bug: https://bugzilla.gnome.org/show_bug.cgi?id=662814 - please update your version of GTK+; this bug has been fixed already and newer versions (of either GTK+ 2.24 or GTK+ 3.x) don't print that warning.