flowbox: Convert to GdkEvent API

This commit is contained in:
Matthias Clasen 2017-08-25 22:53:19 -04:00 committed by Carlos Garnacho
parent c586a6486f
commit 6b4dfcadaf

View File

@ -2637,12 +2637,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);