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/gtkapplication-x11.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/gtkapplication-x11.c')
-rw-r--r-- | gtk/gtkapplication-x11.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtkapplication-x11.c b/gtk/gtkapplication-x11.c index 989e9c3380..933b160b25 100644 --- a/gtk/gtkapplication-x11.c +++ b/gtk/gtkapplication-x11.c @@ -21,6 +21,7 @@ #include "config.h" #include "gtkapplicationprivate.h" +#include "gtknative.h" #include <gdk/x11/gdkx.h> @@ -42,7 +43,7 @@ gtk_application_impl_x11_handle_window_realize (GtkApplicationImpl *impl, GdkSurface *gdk_surface; gchar *window_path; - gdk_surface = gtk_widget_get_surface (GTK_WIDGET (window)); + gdk_surface = gtk_native_get_surface (GTK_NATIVE (window)); if (!GDK_IS_X11_SURFACE (gdk_surface)) return; @@ -65,7 +66,7 @@ gtk_application_impl_x11_get_window_system_id (GtkApplicationImplDBus *dbus, { GdkSurface *gdk_surface; - gdk_surface = gtk_widget_get_surface (GTK_WIDGET (window)); + gdk_surface = gtk_native_get_surface (GTK_NATIVE (window)); if (GDK_IS_X11_SURFACE (gdk_surface)) return g_variant_new_uint32 (GDK_SURFACE_XID (gdk_surface)); |