forked from AuroraMiddleware/gtk
Revert "notebook: Don't capture clicks"
This reverts commit 37eb0496b6
.
This change broke notebook scroll arrows.
This commit is contained in:
parent
dffbcd8fdf
commit
69e14ba02f
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user