forked from AuroraMiddleware/gtk
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
This commit is contained in:
parent
79c3ff3c4e
commit
e6199af60d
@ -3308,6 +3308,9 @@ gtk_tree_view_multipress_gesture_pressed (GtkGestureMultiPress *gesture,
|
|||||||
}
|
}
|
||||||
|
|
||||||
gtk_tree_path_free (path);
|
gtk_tree_path_free (path);
|
||||||
|
|
||||||
|
if (n_press >= 2)
|
||||||
|
gtk_event_controller_reset (GTK_EVENT_CONTROLLER (gesture));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user