diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2017-03-31 18:58:16 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2017-05-25 16:25:58 +0200 |
commit | a72404dd5ab1874ac3d601cd94e0fa7184873851 (patch) | |
tree | b28cd7bb3937ad7f327e7c184ffa65b259179b8d /gtk/gtkbutton.c | |
parent | ef4f0e53364b51efea1d71f7770e8d52631c3cb0 (diff) | |
download | gtk+-a72404dd5ab1874ac3d601cd94e0fa7184873851.tar.gz |
gtk: Mass delete all GtkWidget event mask API
We now rely on toplevels receiving and forwarding all the events
the windowing should be able to handle. Event masks are no longer a
way to determine whether an event is deliverable ot a widget.
Events will always be delivered in the three captured/target/bubbled
phases, widgets can now just attach GtkEventControllers and let those
handle the events.
Diffstat (limited to 'gtk/gtkbutton.c')
-rw-r--r-- | gtk/gtkbutton.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index 951eb1829f..047653a980 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -787,12 +787,7 @@ gtk_button_realize (GtkWidget *widget) gtk_widget_get_allocation (widget, &allocation); priv->event_window = gdk_window_new_input (gtk_widget_get_window (widget), - gtk_widget_get_events (widget) - | GDK_BUTTON_PRESS_MASK - | GDK_BUTTON_RELEASE_MASK - | GDK_TOUCH_MASK - | GDK_ENTER_NOTIFY_MASK - | GDK_LEAVE_NOTIFY_MASK, + GDK_ALL_EVENTS_MASK, &allocation); gtk_widget_register_window (widget, priv->event_window); } |