diff options
author | Kristian Rietveld <kris@gtk.org> | 2010-10-05 15:21:40 +0200 |
---|---|---|
committer | Kristian Rietveld <kris@gtk.org> | 2010-10-05 15:38:23 +0200 |
commit | eca2af52306176ebd5370e35b71da7dc7b4f549e (patch) | |
tree | 6a13853524aec40e011efd46fec027a87b5d22e5 /gdk/gdkoffscreenwindow.c | |
parent | a472d1a4005fea0adab067dea0d263d50c804574 (diff) | |
download | gtk+-eca2af52306176ebd5370e35b71da7dc7b4f549e.tar.gz |
Make set_cairo_surface_size a vfunc on GdkWindowImpl
Note the special implementation of this method on GdkOffscreenWindow
that makes sure its current surface is not destroyed.
Diffstat (limited to 'gdk/gdkoffscreenwindow.c')
-rw-r--r-- | gdk/gdkoffscreenwindow.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gdk/gdkoffscreenwindow.c b/gdk/gdkoffscreenwindow.c index ebbdcc7737..dbacf952a3 100644 --- a/gdk/gdkoffscreenwindow.c +++ b/gdk/gdkoffscreenwindow.c @@ -597,6 +597,18 @@ gdk_offscreen_window_translate (GdkWindow *window, _gdk_window_add_damage (window, area); } +static cairo_surface_t * +gdk_offscreen_window_resize_cairo_surface (GdkWindow *window, + cairo_surface_t *surface, + gint width, + gint height) +{ + /* No-op. The surface gets resized in + * gdk_offscreen_window_move_resize_internal(). + */ + return surface; +} + /** * gdk_offscreen_window_set_embedder: * @window: a #GdkWindow @@ -700,4 +712,5 @@ gdk_offscreen_window_impl_iface_init (GdkWindowImplIface *iface) iface->get_root_coords = gdk_offscreen_window_get_root_coords; iface->get_device_state = gdk_offscreen_window_get_device_state; iface->destroy = gdk_offscreen_window_destroy; + iface->resize_cairo_surface = gdk_offscreen_window_resize_cairo_surface; } |