[gtk/wip/matthiasc/popup5: 23/145] main: Use gtk_widget_get_native



commit 6bf4ba0ccf67ebf48c3d6da3b77faf16d0a813e1
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu May 2 17:33:53 2019 -0400

    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 ffc2168ce6..a3ace5338b 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -1689,7 +1689,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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]