mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 06:10:15 +00:00
treeview: remove single-click activation from GtkGestureMultiPress::pressed
This is already handled in GtkGestureMultiPress::release, and more in concordance with how it was done pre-gestures. https://bugzilla.gnome.org/show_bug.cgi?id=737891
This commit is contained in:
parent
1e3e544bfd
commit
4df13b7262
@ -3291,8 +3291,7 @@ gtk_tree_view_multipress_gesture_pressed (GtkGestureMultiPress *gesture,
|
|||||||
tree_view->priv->extend_selection_pressed = FALSE;
|
tree_view->priv->extend_selection_pressed = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (button == GDK_BUTTON_PRIMARY &&
|
if (button == GDK_BUTTON_PRIMARY && n_press == 2)
|
||||||
(n_press == 2 || (n_press == 1 && tree_view->priv->activate_on_single_click)))
|
|
||||||
gtk_tree_view_row_activated (tree_view, path, column);
|
gtk_tree_view_row_activated (tree_view, path, column);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user