From 0d25233e3900e151e2176749f8b40b726d1effad Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 2 May 2019 17:33:53 -0400 Subject: [PATCH] main: Use gtk_widget_get_native --- gtk/gtkmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index de3a84ecf6..77ea24d6c0 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -1690,7 +1690,7 @@ handle_pointing_event (GdkEvent *event) return event_widget; toplevel = GTK_WINDOW (gtk_widget_get_root (event_widget)); - native = gtk_widget_get_ancestor (event_widget, GTK_TYPE_NATIVE); + native = GTK_WIDGET (gtk_widget_get_native (event_widget)); sequence = gdk_event_get_event_sequence (event);