Phil Bordelon points out that my invocation of gdk_pixbuf_save()

isn't quite right.

[originally from svn r7050]
This commit is contained in:
Simon Tatham
2007-01-02 19:45:19 +00:00
parent 21127b78eb
commit 7848918bac

3
gtk.c
View File

@ -2097,12 +2097,13 @@ int main(int argc, char **argv)
if (screenshot_file) {
GdkPixbuf *pb;
GError* gerror;
midend_redraw(fe->me);
pb = gdk_pixbuf_get_from_drawable(NULL, fe->pixmap,
NULL, 0, 0, 0, 0, -1, -1);
gdk_pixbuf_save(pb, screenshot_file, "png", NULL);
gdk_pixbuf_save(pb, screenshot_file, "png", &gerror, NULL);
exit(0);
}