[gtk/wip/matthiasc/popup5: 82/115] main: Use gtk_widget_get_native



commit 46080dd920ff4a2443478ee75d702aec49256aea
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 da2aa2c85e..5c799a7dee 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -1688,7 +1688,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]