From e6199af60d4f1be2aa538840674ed6a7932c704f Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 27 Aug 2014 14:36:53 +0200 Subject: [PATCH] treeview: Reset multipress controller after 2nd click The pre-gestures code used to compare the current button press with the previous one on !activate_on_single_click, and unset the previous event data so ::row-activated would be emitted every 2 clicks. So do the same with the multipress gesture and reset it after every 2nd click to have ::row-activated emitted multiple times while manic clicking. https://bugzilla.gnome.org/show_bug.cgi?id=735353 --- gtk/gtktreeview.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index efaabfb33c..48cdede79f 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -3308,6 +3308,9 @@ gtk_tree_view_multipress_gesture_pressed (GtkGestureMultiPress *gesture, } gtk_tree_path_free (path); + + if (n_press >= 2) + gtk_event_controller_reset (GTK_EVENT_CONTROLLER (gesture)); } static void