diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-06-17 23:42:21 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-06-19 11:42:47 -0400 |
commit | 69e14ba02f3b194ef385a9d29bb98393c143b314 (patch) | |
tree | b0e66ead1857f5f8e653dced9f9cb798fd4b1d2a /gtk/gtknotebook.c | |
parent | dffbcd8fdf10c9b28115c3e05914a28b61f8a785 (diff) | |
download | gtk+-69e14ba02f3b194ef385a9d29bb98393c143b314.tar.gz |
Revert "notebook: Don't capture clicks"
This reverts commit 37eb0496b60f3612f15fd9d0fb43a3e3f2ecc144.
This change broke notebook scroll arrows.
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r-- | gtk/gtknotebook.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 858d68a7b0..7ccaf47a67 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -1432,6 +1432,7 @@ gtk_notebook_init (GtkNotebook *notebook) gesture = gtk_gesture_click_new (); gtk_gesture_single_set_button (GTK_GESTURE_SINGLE (gesture), 0); + gtk_event_controller_set_propagation_phase (GTK_EVENT_CONTROLLER (gesture), GTK_PHASE_CAPTURE); g_signal_connect (gesture, "pressed", G_CALLBACK (gtk_notebook_gesture_pressed), notebook); g_signal_connect (gesture, "released", G_CALLBACK (gtk_notebook_gesture_released), notebook); gtk_widget_add_controller (GTK_WIDGET (notebook), GTK_EVENT_CONTROLLER (gesture)); |