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); }