summaryrefslogtreecommitdiff
path: root/desktop/treeview.c
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/treeview.c')
-rw-r--r--desktop/treeview.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/desktop/treeview.c b/desktop/treeview.c
index 6b74c9033..d1eae4030 100644
--- a/desktop/treeview.c
+++ b/desktop/treeview.c
@@ -2075,6 +2075,15 @@ static treeview_node * treeview_get_first_selected(treeview *tree)
}
+/* Exported interface, documented in treeview.h */
+void treeview_get_selection(treeview *tree, void **node_data)
+{
+ assert(tree != NULL);
+
+ *node_data = treeview_get_first_selected(tree);
+}
+
+
/**
* Clear any selection in a treeview
*