diff options
-rw-r--r-- | desktop/treeview.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/desktop/treeview.c b/desktop/treeview.c index 3318dc93a..4fd02d608 100644 --- a/desktop/treeview.c +++ b/desktop/treeview.c @@ -3145,6 +3145,16 @@ void treeview_mouse_action(treeview *tree, } +/* Exported interface, documented in treeview.h */ +int treeview_get_height(treeview *tree) +{ + assert(tree != NULL); + assert(tree->root != NULL); + + return tree->root->height; +} + + /** * Initialise the plot styles from CSS system colour values. */ |