summaryrefslogtreecommitdiff
path: root/gdk/gdkcairo.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/gdkcairo.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/gdkcairo.c')
-rw-r--r--gdk/gdkcairo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk/gdkcairo.c b/gdk/gdkcairo.c
index 7fe0ccc770..a82e97f75b 100644
--- a/gdk/gdkcairo.c
+++ b/gdk/gdkcairo.c
@@ -299,7 +299,7 @@ gdk_cairo_set_source_window (cairo_t *cr,
g_return_if_fail (cr != NULL);
g_return_if_fail (GDK_IS_WINDOW (window));
- surface = _gdk_drawable_ref_cairo_surface (GDK_DRAWABLE (window));
+ surface = _gdk_window_ref_cairo_surface (window);
cairo_set_source_surface (cr, surface, x, y);
cairo_surface_destroy (surface);
}