diff options
author | Benjamin Otte <otte@redhat.com> | 2010-11-23 01:46:03 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-12-02 20:21:03 +0100 |
commit | d1700d6e3cf5d31b41abf78be5609cd886daf579 (patch) | |
tree | c39ed52729e96542b04c28a8b24817bbbe5254aa /gdk/gdkoffscreenwindow.c | |
parent | 62d004cf8f0e431310c0ee551d203b1ba70d9dfe (diff) | |
download | gtk+-d1700d6e3cf5d31b41abf78be5609cd886daf579.tar.gz |
gdk: Move ref_cairo_surface from GdkDrawable to GdkWindowImpl
Also make it take the actual GdkWindow, not the implementation, like all
the other vfuncs do.
Diffstat (limited to 'gdk/gdkoffscreenwindow.c')
-rw-r--r-- | gdk/gdkoffscreenwindow.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gdk/gdkoffscreenwindow.c b/gdk/gdkoffscreenwindow.c index 04770e57da..018af47023 100644 --- a/gdk/gdkoffscreenwindow.c +++ b/gdk/gdkoffscreenwindow.c @@ -135,9 +135,9 @@ is_parent_of (GdkWindow *parent, } static cairo_surface_t * -gdk_offscreen_window_ref_cairo_surface (GdkDrawable *drawable) +gdk_offscreen_window_ref_cairo_surface (GdkWindow *window) { - GdkOffscreenWindow *offscreen = GDK_OFFSCREEN_WINDOW (drawable); + GdkOffscreenWindow *offscreen = GDK_OFFSCREEN_WINDOW (window->impl); return cairo_surface_reference (get_surface (offscreen)); } @@ -694,13 +694,11 @@ static void gdk_offscreen_window_class_init (GdkOffscreenWindowClass *klass) { GdkWindowImplClass *impl_class = GDK_WINDOW_IMPL_CLASS (klass); - GdkDrawableClass *drawable_class = GDK_DRAWABLE_CLASS (klass); GObjectClass *object_class = G_OBJECT_CLASS (klass); object_class->finalize = gdk_offscreen_window_finalize; - drawable_class->ref_cairo_surface = gdk_offscreen_window_ref_cairo_surface; - + impl_class->ref_cairo_surface = gdk_offscreen_window_ref_cairo_surface; impl_class->show = gdk_offscreen_window_show; impl_class->hide = gdk_offscreen_window_hide; impl_class->withdraw = gdk_offscreen_window_withdraw; |