From 034ba7c2f2077bbc4f20628971bf2b061031ff9f Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 18 May 2013 16:35:48 +0100 Subject: Allow getting the node's icon --- desktop/tree.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'desktop/tree.c') diff --git a/desktop/tree.c b/desktop/tree.c index c62793e02..e12da8b0b 100644 --- a/desktop/tree.c +++ b/desktop/tree.c @@ -1551,6 +1551,17 @@ const char *tree_node_element_get_text(struct node_element *element) } +/** + * Returns the node element's icon + * + * \return the node element's icon + */ +struct bitmap *tree_node_element_get_icon(struct node_element *element) +{ + return element->bitmap; +} + + /** * Get the root node of a tree * -- cgit v1.2.3