diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-05-18 16:35:48 +0100 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2013-05-18 16:35:48 +0100 |
commit | 034ba7c2f2077bbc4f20628971bf2b061031ff9f (patch) | |
tree | e8aac35a192b28f4e24a6ab5cfe8d223710378f0 /desktop/tree.c | |
parent | 6c9d0aaee7933d3940bbd0f1e251c16ae58d3a5e (diff) | |
download | netsurf-034ba7c2f2077bbc4f20628971bf2b061031ff9f.tar.gz netsurf-034ba7c2f2077bbc4f20628971bf2b061031ff9f.tar.bz2 |
Allow getting the node's icon
Diffstat (limited to 'desktop/tree.c')
-rw-r--r-- | desktop/tree.c | 11 |
1 files changed, 11 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 |