[gtk+] expander: Convert to GdkEvent API
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] expander: Convert to GdkEvent API
- Date: Tue, 19 Sep 2017 17:15:35 +0000 (UTC)
commit 2246387d211821f139c40ad96748086252f59a34
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Aug 25 22:52:48 2017 -0400
expander: Convert to GdkEvent API
gtk/gtkexpander.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkexpander.c b/gtk/gtkexpander.c
index 1262363..6aac0e3 100644
--- a/gtk/gtkexpander.c
+++ b/gtk/gtkexpander.c
@@ -604,8 +604,11 @@ gtk_expander_enter_notify (GtkWidget *widget,
GdkEventCrossing *event)
{
GtkExpander *expander = GTK_EXPANDER (widget);
+ GdkNotifyType detail;
- if (event->detail != GDK_NOTIFY_INFERIOR)
+ gdk_event_get_crossing_detail ((GdkEvent *)event, &detail);
+
+ if (detail != GDK_NOTIFY_INFERIOR)
{
expander->priv->prelight = TRUE;
@@ -625,8 +628,11 @@ gtk_expander_leave_notify (GtkWidget *widget,
GdkEventCrossing *event)
{
GtkExpander *expander = GTK_EXPANDER (widget);
+ GdkNotifyType detail;
+
+ gdk_event_get_crossing_detail ((GdkEvent *)event, &detail);
- if (event->detail != GDK_NOTIFY_INFERIOR)
+ if (detail != GDK_NOTIFY_INFERIOR)
{
expander->priv->prelight = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]