From 37eb0496b60f3612f15fd9d0fb43a3e3f2ecc144 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 15 Jun 2020 14:16:45 -0400 Subject: [PATCH] notebook: Don't capture clicks Using the bubble works just fine here, and keeps buttons in notebook tabs working without side-effects. Fixes: #2841 --- gtk/gtknotebook.c | 1 - 1 file changed, 1 deletion(-) diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 7ccaf47a67..858d68a7b0 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -1432,7 +1432,6 @@ 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));