From ea00cba0d2bb2566a435b3e498679fe1af096471 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 25 Aug 2017 22:53:19 -0400 Subject: [PATCH] flowbox: Convert to GdkEvent API --- gtk/gtkflowbox.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c index d862812d11..bf4d9a2fb7 100644 --- a/gtk/gtkflowbox.c +++ b/gtk/gtkflowbox.c @@ -2633,12 +2633,15 @@ gtk_flow_box_leave_notify_event (GtkWidget *widget, GtkFlowBox *box = GTK_FLOW_BOX (widget); GtkFlowBoxChild *child = NULL; gdouble x, y; + GdkNotifyType detail; if (gdk_event_get_window ((GdkEvent *) event) != gtk_widget_get_window (GTK_WIDGET (box))) return FALSE; - if (event->detail != GDK_NOTIFY_INFERIOR) + gdk_event_get_crossing_detail ((GdkEvent *)event, &detail); + + if (detail != GDK_NOTIFY_INFERIOR) child = NULL; else if (gdk_event_get_coords ((GdkEvent *) event, &x, &y)) child = gtk_flow_box_get_child_at_pos (box, x, y);