treeview: Add internal get_cursor_node() API

This commit is contained in:
Benjamin Otte 2012-02-11 02:54:11 +01:00
parent 07f8336dbd
commit 5fe947640c
2 changed files with 21 additions and 0 deletions

View File

@ -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,

View File

@ -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)
{