[gtk+] flowbox: Convert to GdkEvent API
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] flowbox: Convert to GdkEvent API
- Date: Tue, 19 Sep 2017 17:15:45 +0000 (UTC)
commit 6b4dfcadaf2b9b649570f2fa1d9d8d9b1144d210
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Aug 25 22:53:19 2017 -0400
flowbox: Convert to GdkEvent API
gtk/gtkflowbox.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkflowbox.c b/gtk/gtkflowbox.c
index 815428d..a83c9bd 100644
--- a/gtk/gtkflowbox.c
+++ b/gtk/gtkflowbox.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]