diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-05-20 00:38:08 +0000 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-05-28 20:25:16 +0000 |
commit | 302d2a04aebb3d97829b17ca4f27fe62234d2de8 (patch) | |
tree | 003a114695f30ea40b8f759a2c8f819ad18d1bd0 /gtk/gtkglarea.c | |
parent | 9765aabebd5ed699f254155b68109a1bba4fb51f (diff) | |
download | gtk+-302d2a04aebb3d97829b17ca4f27fe62234d2de8.tar.gz |
Stop using gtk_widget_get_surface
Replace all uses of gtk_widget_get_surface by
gtk_native_get_surface.
Diffstat (limited to 'gtk/gtkglarea.c')
-rw-r--r-- | gtk/gtkglarea.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkglarea.c b/gtk/gtkglarea.c index 3d5e47d6d9..5f91f32fef 100644 --- a/gtk/gtkglarea.c +++ b/gtk/gtkglarea.c @@ -28,6 +28,7 @@ #include "gtkprivate.h" #include "gtkrender.h" #include "gtksnapshot.h" +#include "gtknative.h" #include <epoxy/gl.h> @@ -312,7 +313,7 @@ gtk_gl_area_real_create_context (GtkGLArea *area) GError *error = NULL; GdkGLContext *context; - context = gdk_surface_create_gl_context (gtk_widget_get_surface (widget), &error); + context = gdk_surface_create_gl_context (gtk_native_get_surface (gtk_widget_get_native (widget)), &error); if (error != NULL) { gtk_gl_area_set_error (area, error); |