summaryrefslogtreecommitdiff
path: root/gdk/gdkpixbuf-drawable.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-11-22 17:23:31 +0100
committerBenjamin Otte <otte@redhat.com>2010-12-02 20:21:02 +0100
commit072498ae87256b5ff2cbf6555128a9791b091245 (patch)
tree5d96547b530dcb1c0918778925f90143eb7479f8 /gdk/gdkpixbuf-drawable.c
parente724054d19d617107cfc4d9be116b376bfee249d (diff)
downloadgtk+-072498ae87256b5ff2cbf6555128a9791b091245.tar.gz
gdk: Make _gdk_window_ref_cairo_surface() protected and use it
... instead of _gdk_drawable_ref_cairo_surface() where appropriate. Also, don't implement the drawable->create_cairo_surface vfunc anymore. This is in preparation for the split of GdkWindow from GdkDrawable.
Diffstat (limited to 'gdk/gdkpixbuf-drawable.c')
-rw-r--r--gdk/gdkpixbuf-drawable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/gdkpixbuf-drawable.c b/gdk/gdkpixbuf-drawable.c
index 3869099e08..fd14b9e352 100644
--- a/gdk/gdkpixbuf-drawable.c
+++ b/gdk/gdkpixbuf-drawable.c
@@ -91,7 +91,7 @@ gdk_pixbuf_get_from_window (GdkWindow *src,
g_return_val_if_fail (GDK_IS_WINDOW (src), NULL);
g_return_val_if_fail (gdk_window_is_viewable (src), NULL);
- surface = _gdk_drawable_ref_cairo_surface (src);
+ surface = _gdk_window_ref_cairo_surface (src);
dest = gdk_pixbuf_get_from_surface (surface,
src_x, src_y,
width, height);