Merge branch 'wip/exalm/treeview-click' into 'master'

treeview: Don't handle clicks on any child widgets

Closes #3996

See merge request GNOME/gtk!3618
This commit is contained in:
Matthias Clasen 2021-06-02 10:33:50 +00:00
commit 1dcf9d5c95

View File

@ -2767,9 +2767,9 @@ gtk_tree_view_click_gesture_pressed (GtkGestureClick *gesture,
gboolean rtl;
GtkWidget *target;
/* check if this is a click in an editing widget */
/* check if this is a click in a child widget */
target = gtk_event_controller_get_target (GTK_EVENT_CONTROLLER (gesture));
if (priv->edited_column && gtk_widget_is_ancestor (target, widget))
if (gtk_widget_is_ancestor (target, widget))
return;
gtk_tree_view_stop_editing (tree_view, FALSE);