diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2014-05-27 17:37:07 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2014-05-27 17:47:13 +0200 |
commit | 4cf111aab3f93f6831150b39d76d2907e5dbe433 (patch) | |
tree | b70198d239891fbb7d803400134997cb2b0081a9 /gtk/gtktreeview.c | |
parent | 2012b67c5bfe8291dd77f6726b4f2c26f694b4ba (diff) | |
download | gtk+-4cf111aab3f93f6831150b39d76d2907e5dbe433.tar.gz |
treeview: Make the multipress gesture listen only to bin_window
This gesture is meant to handle row-activated signaling, so make the
gesture ignore events from any other window.
Diffstat (limited to 'gtk/gtktreeview.c')
-rw-r--r-- | gtk/gtktreeview.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 2269ce8e6c..524e5ef0a2 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -2442,6 +2442,9 @@ gtk_tree_view_realize (GtkWidget *widget) gtk_tree_view_set_enable_tree_lines (tree_view, tree_view->priv->tree_lines_enabled); install_presize_handler (tree_view); + + gtk_gesture_set_window (tree_view->priv->multipress_gesture, + tree_view->priv->bin_window); } static void @@ -2518,6 +2521,8 @@ gtk_tree_view_unrealize (GtkWidget *widget) priv->drag_highlight_window = NULL; } + gtk_gesture_set_window (tree_view->priv->multipress_gesture, NULL); + GTK_WIDGET_CLASS (gtk_tree_view_parent_class)->unrealize (widget); } |