From 5136fa6ab9b9025af78bf01b2c8019e4f926b747 Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 2 Jan 2007 19:45:19 +0000 Subject: [PATCH] Phil Bordelon points out that my invocation of gdk_pixbuf_save() isn't quite right. git-svn-id: svn://svn.tartarus.org/sgt/puzzles@7050 cda61777-01e9-0310-a592-d414129be87e --- gtk.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk.c b/gtk.c index 4ef0839..075a49f 100644 --- a/gtk.c +++ b/gtk.c @@ -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); } -- 2.11.0