forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
2012b67c5b
commit
4cf111aab3
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user