mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 14:30:15 +00:00
treeview: Add internal get_cursor_node() API
This commit is contained in:
parent
07f8336dbd
commit
5fe947640c
@ -49,6 +49,9 @@ gboolean _gtk_tree_view_find_node (GtkTreeView *tree_v
|
||||
GtkTreePath *path,
|
||||
GtkRBTree **tree,
|
||||
GtkRBNode **node);
|
||||
gboolean _gtk_tree_view_get_cursor_node (GtkTreeView *tree_view,
|
||||
GtkRBTree **tree,
|
||||
GtkRBNode **node);
|
||||
GtkTreePath *_gtk_tree_path_new_from_rbtree (GtkRBTree *tree,
|
||||
GtkRBNode *node);
|
||||
void _gtk_tree_view_child_move_resize (GtkTreeView *tree_view,
|
||||
|
@ -10009,6 +10009,24 @@ _gtk_tree_view_get_rbtree (GtkTreeView *tree_view)
|
||||
return tree_view->priv->tree;
|
||||
}
|
||||
|
||||
gboolean
|
||||
_gtk_tree_view_get_cursor_node (GtkTreeView *tree_view,
|
||||
GtkRBTree **tree,
|
||||
GtkRBNode **node)
|
||||
{
|
||||
GtkTreeViewPrivate *priv;
|
||||
|
||||
priv = tree_view->priv;
|
||||
|
||||
if (priv->cursor_node == NULL)
|
||||
return FALSE;
|
||||
|
||||
*tree = priv->cursor_tree;
|
||||
*node = priv->cursor_node;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
GdkWindow *
|
||||
_gtk_tree_view_get_header_window (GtkTreeView *tree_view)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user