chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21127b7
)
Phil Bordelon points out that my invocation of gdk_pixbuf_save()
author
Simon Tatham
<anakin@pobox.com>
Tue, 2 Jan 2007 19:45:19 +0000
(19:45 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Tue, 2 Jan 2007 19:45:19 +0000
(19:45 +0000)
isn't quite right.
[originally from svn r7050]
gtk.c
patch
|
blob
|
history
diff --git
a/gtk.c
b/gtk.c
index 4ef0839ecbfe2a433bac3f7f4ba2c03654cbb666..075a49fa32d0571a5dd8d82eb92495feb8d99a35 100644
(file)
--- 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);
}