treeview: restrict the multipress gesture to GDK_BUTTON_PRIMARY

::row-activated only used to be triggered by GDK_BUTTON_PRIMARY, so make
the multipress gesture handling this now to be only triggered by that same
button.

https://bugzilla.gnome.org/show_bug.cgi?id=731020
This commit is contained in:
Carlos Garnacho 2014-06-01 20:20:08 +02:00
parent a3cd0ee7d8
commit 541ed65a51

View File

@ -1840,6 +1840,8 @@ gtk_tree_view_init (GtkTreeView *tree_view)
tree_view->priv->multipress_gesture = gtk_gesture_multi_press_new (GTK_WIDGET (tree_view));
gtk_gesture_single_set_touch_only (GTK_GESTURE_SINGLE (tree_view->priv->multipress_gesture), FALSE);
gtk_gesture_single_set_button (GTK_GESTURE_SINGLE (tree_view->priv->multipress_gesture),
GDK_BUTTON_PRIMARY);
g_signal_connect (tree_view->priv->multipress_gesture, "pressed",
G_CALLBACK (_tree_view_multipress_pressed), tree_view);
gtk_event_controller_set_propagation_phase (GTK_EVENT_CONTROLLER (tree_view->priv->multipress_gesture),