treeview: Check that :row-activated is only emitted on GDK_BUTTON_PRIMARY
It turned out not all code was fully prepared to handle multiple buttons, this avoids respawning https://bugzilla.gnome.org/show_bug.cgi?id=731020.
This commit is contained in:
parent
f321d3a50a
commit
3e65655424
@ -3295,7 +3295,8 @@ gtk_tree_view_multipress_gesture_pressed (GtkGestureMultiPress *gesture,
|
||||
tree_view->priv->extend_selection_pressed = FALSE;
|
||||
}
|
||||
|
||||
if (n_press == 2 || (n_press == 1 && tree_view->priv->activate_on_single_click))
|
||||
if (button == GDK_BUTTON_PRIMARY &&
|
||||
(n_press == 2 || (n_press == 1 && tree_view->priv->activate_on_single_click)))
|
||||
gtk_tree_view_row_activated (tree_view, path, column);
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user