summaryrefslogtreecommitdiff
path: root/gdk/gdkwindow.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-11-30 15:52:22 +0100
committerBenjamin Otte <otte@redhat.com>2016-11-30 15:52:22 +0100
commitefd04b47aa9089d9d276528423786b0e0d605c5f (patch)
tree3c6f076c996a185ba9cab4283c0fcdde55a43e96 /gdk/gdkwindow.c
parentbdcfc17c436ae3e76ec8f196ff7c1e21ad48bb35 (diff)
downloadgtk+-efd04b47aa9089d9d276528423786b0e0d605c5f.tar.gz
gdk: Make GdkDrawingContext not per-backend
No backend is using it, and we can put the backend-specific drawing code into GdkGLContext.
Diffstat (limited to 'gdk/gdkwindow.c')
-rw-r--r--gdk/gdkwindow.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 2ff89ee8e6..9ddec1bf08 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -2911,7 +2911,10 @@ gdk_window_begin_draw_frame (GdkWindow *window,
gdk_window_begin_paint_internal (window, region);
- context = GDK_WINDOW_IMPL_GET_CLASS (window->impl)->create_draw_context (window, region);
+ context = g_object_new (GDK_TYPE_DRAWING_CONTEXT,
+ "window", window,
+ "clip", region,
+ NULL);
/* Do not take a reference, to avoid creating cycles */
window->drawing_context = context;