将 GdkPixbuf 保存到文件时出现警告 - 为什么会发生这种情况?
当我使用 gdk_pixbuf_save(picturePixbuf, currentFileName, "bmp", &error, NULL); 将 GdkPixbuf 内容保存到文件中(应该创建该文件,通过对话框窗口确定路径); 我得到一个警告:
(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
为什么?该文件实际上正在创建。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您遇到了此错误:https://bugzilla.gnome.org/show_bug.cgi? id=662814 - 请更新您的 GTK+ 版本;此错误已被修复,较新的版本(GTK+ 2.24 或 GTK+ 3.x)不会打印该警告。
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.