summaryrefslogtreecommitdiff
path: root/gtk/gtkmenuitemprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2018-01-02 11:07:56 -0500
committerMatthias Clasen <mclasen@redhat.com>2018-01-16 14:14:10 -0500
commit6acf276a1ade39e59375840cceafc8396b8cf4ce (patch)
tree2c0fc74d75a4e6e01768d2c79c5c1748642a0b20 /gtk/gtkmenuitemprivate.h
parent118424bd93ff913ad258fd6a214efc3400a9f96a (diff)
downloadgtk+-6acf276a1ade39e59375840cceafc8396b8cf4ce.tar.gz
menuitem: Use a motion event controller
This lets us replace the ::enter/leave-notify-event handlers. Not that there is a FIXME here - we currently can't get the crossing mode from the event controller, so we have to fall back to gtk_get_current_event().
Diffstat (limited to 'gtk/gtkmenuitemprivate.h')
-rw-r--r--gtk/gtkmenuitemprivate.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkmenuitemprivate.h b/gtk/gtkmenuitemprivate.h
index dc10bca598..73b943f028 100644
--- a/gtk/gtkmenuitemprivate.h
+++ b/gtk/gtkmenuitemprivate.h
@@ -21,6 +21,7 @@
#include <gtk/gtkmenuitem.h>
#include <gtk/gtkactionhelper.h>
#include <gtk/gtkcssnodeprivate.h>
+#include <gtk/gtkeventcontrollermotion.h>
G_BEGIN_DECLS
@@ -38,6 +39,7 @@ struct _GtkMenuItemPrivate
GtkActionHelper *action_helper;
GtkWidget *arrow_widget;
+ GtkEventController *motion_controller;
guint submenu_placement : 1;
guint submenu_direction : 1;