forked from AuroraMiddleware/gtk
treeview: Ensure the event is consumed on ::row-activate
Otherwise the event is possibly handled, but still propagated further anyway. Ensure the event is consumed by claiming the current sequence on the GtkGestureMultiPress::pressed handler.
This commit is contained in:
parent
541ed65a51
commit
e1c425a24d
@ -1755,7 +1755,10 @@ _tree_view_multipress_pressed (GtkGestureMultiPress *gesture,
|
||||
&path, &column, NULL, NULL);
|
||||
|
||||
if (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);
|
||||
gtk_gesture_set_state (GTK_GESTURE (gesture), GTK_EVENT_SEQUENCE_CLAIMED);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (n_press == 1)
|
||||
|
Loading…
Reference in New Issue
Block a user