diff options
-rw-r--r-- | desktop/tree.c | 11 | ||||
-rw-r--r-- | desktop/tree.h | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/desktop/tree.c b/desktop/tree.c index c62793e02..e12da8b0b 100644 --- a/desktop/tree.c +++ b/desktop/tree.c @@ -1552,6 +1552,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 * * \param tree the tree to get the root of diff --git a/desktop/tree.h b/desktop/tree.h index 00ac99984..20ade30c0 100644 --- a/desktop/tree.h +++ b/desktop/tree.h @@ -200,6 +200,7 @@ void tree_update_node_element(struct tree *tree, struct node_element *element, const char *text, void *bitmap); bool tree_update_element_text(struct tree *tree, struct node_element *element, char *text); const char *tree_node_element_get_text(struct node_element *element); +struct bitmap *tree_node_element_get_icon(struct node_element *element); struct node *tree_get_root(struct tree *tree); bool tree_is_edited(struct tree *tree); tree_drag_type tree_drag_status(struct tree *tree); |