diff options
author | Benjamin Otte <otte@redhat.com> | 2010-10-02 02:47:55 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-10-02 03:08:24 +0200 |
commit | 872ef111ecabf6cd4453590b1e17afd3c9757f28 (patch) | |
tree | f84fe201a6661ac903334e780604a558b4bfc923 /gtk/gtkoffscreenwindow.c | |
parent | 0555dd06454a649943f8420512303ddd02ed5867 (diff) | |
download | gtk+-872ef111ecabf6cd4453590b1e17afd3c9757f28.tar.gz |
gdk: Make gdk_pixbuf_get_from_*() bindable
The ownership of the return value for gdk_pixbuf_get_from_window() and
gdk_pixbuf_get_from_surface() was determined by the first argument.
Because that is an ugly design and the functions are new to GTK3, we
decided to adapt them.
And that adaptation was quite easy since almost no one passses anything
but NULL as the first argument.
Diffstat (limited to 'gtk/gtkoffscreenwindow.c')
-rw-r--r-- | gtk/gtkoffscreenwindow.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkoffscreenwindow.c b/gtk/gtkoffscreenwindow.c index 69356fd151..ee37a9ae1d 100644 --- a/gtk/gtkoffscreenwindow.c +++ b/gtk/gtkoffscreenwindow.c @@ -314,8 +314,8 @@ gtk_offscreen_window_get_pixbuf (GtkOffscreenWindow *offscreen) if (surface != NULL) { - pixbuf = gdk_pixbuf_get_from_surface (NULL, surface, - 0, 0, 0, 0, + pixbuf = gdk_pixbuf_get_from_surface (surface, + 0, 0, gdk_window_get_width (window), gdk_window_get_height (window)); } |