inspector: Add api to get the current tree walk position
This will be used in the next commit.
This commit is contained in:
parent
a6d575ed61
commit
2e34ce8f7c
@ -221,3 +221,11 @@ gtk_tree_walk_next_match (GtkTreeWalk *walk,
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
gboolean
|
||||
gtk_tree_walk_get_position (GtkTreeWalk *walk,
|
||||
GtkTreeIter *iter)
|
||||
{
|
||||
*iter = walk->position;
|
||||
return walk->visited;
|
||||
}
|
||||
|
@ -39,3 +39,6 @@ gboolean gtk_tree_walk_next_match (GtkTreeWalk *walk,
|
||||
gboolean force_move,
|
||||
gboolean backwards,
|
||||
GtkTreeIter *iter);
|
||||
|
||||
gboolean gtk_tree_walk_get_position (GtkTreeWalk *walk,
|
||||
GtkTreeIter *iter);
|
||||
|
Loading…
Reference in New Issue
Block a user