summaryrefslogtreecommitdiff
path: root/gdk/gdkwindow.h
diff options
context:
space:
mode:
authorMichael Natterer <mitch@gimp.org>2010-10-14 13:25:23 +0200
committerMichael Natterer <mitch@gimp.org>2010-10-14 13:25:23 +0200
commit9d9742f1e56a331f71c6a46b11ccc765621d46c7 (patch)
tree2a8736e41f6ea1f8ab254bcda86a41c711cd3240 /gdk/gdkwindow.h
parent10c76c1c956c9dee46a6d9e28b9456967d508889 (diff)
downloadgtk+-9d9742f1e56a331f71c6a46b11ccc765621d46c7.tar.gz
Bug 631599 - Allow to use arbitrary surfaces for offscreen windows
Add signal GdkWindow::create-surface which allows to use any surface type as storage for offscreen windows. Test the new signal in tests/gdkoffscreenbox.c
Diffstat (limited to 'gdk/gdkwindow.h')
-rw-r--r--gdk/gdkwindow.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdk/gdkwindow.h b/gdk/gdkwindow.h
index 5f2c6cbbc3..05a998930e 100644
--- a/gdk/gdkwindow.h
+++ b/gdk/gdkwindow.h
@@ -489,6 +489,10 @@ typedef struct _GdkWindowObjectClass GdkWindowObjectClass;
struct _GdkWindowObjectClass
{
GdkDrawableClass parent_class;
+
+ cairo_surface_t * (* create_surface) (GdkWindow *window,
+ gint width,
+ gint height);
};
/* Windows