[gtk/wip/exalm/treeview-click] treeview: Don't handle clicks on any child widgets
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/exalm/treeview-click] treeview: Don't handle clicks on any child widgets
- Date: Wed, 2 Jun 2021 08:49:59 +0000 (UTC)
commit 80497debbbf796574c5b4fb14f27c930e0b30c82
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Wed Jun 2 13:45:11 2021 +0500
treeview: Don't handle clicks on any child widgets
We already skip them on the edited cell widget, but it's also a problem for
header buttons. Overall, there's no real reason to let it propagate here.
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3996
gtk/gtktreeview.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 5ee23dea7c..bf8b05a435 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]