summaryrefslogtreecommitdiff
path: root/gdk/gdkpixbuf.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-10-02 02:47:55 +0200
committerBenjamin Otte <otte@redhat.com>2010-10-02 03:08:24 +0200
commit872ef111ecabf6cd4453590b1e17afd3c9757f28 (patch)
treef84fe201a6661ac903334e780604a558b4bfc923 /gdk/gdkpixbuf.h
parent0555dd06454a649943f8420512303ddd02ed5867 (diff)
downloadgtk+-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 'gdk/gdkpixbuf.h')
-rw-r--r--gdk/gdkpixbuf.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/gdk/gdkpixbuf.h b/gdk/gdkpixbuf.h
index 6b21078edb..61a1392d09 100644
--- a/gdk/gdkpixbuf.h
+++ b/gdk/gdkpixbuf.h
@@ -38,21 +38,15 @@
G_BEGIN_DECLS
/* Fetching a region from a drawable */
-GdkPixbuf *gdk_pixbuf_get_from_window (GdkPixbuf *dest,
- GdkWindow *window,
+GdkPixbuf *gdk_pixbuf_get_from_window (GdkWindow *window,
int src_x,
int src_y,
- int dest_x,
- int dest_y,
int width,
int height);
-GdkPixbuf *gdk_pixbuf_get_from_surface (GdkPixbuf *dest,
- cairo_surface_t *surface,
+GdkPixbuf *gdk_pixbuf_get_from_surface (cairo_surface_t *surface,
int src_x,
int src_y,
- int dest_x,
- int dest_y,
int width,
int height);