summaryrefslogtreecommitdiff
path: root/desktop/hotlist.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2010-12-14 00:18:24 +0000
committerVincent Sanders <vince@netsurf-browser.org>2010-12-14 00:18:24 +0000
commit60c840628f4f2aebc86adea495258be1ecc738e8 (patch)
tree45a947044dbf5629d0c928ad7f82321060ee2dc7 /desktop/hotlist.c
parent67556f54feaba380bb48459beb9b85329e67fc7c (diff)
downloadnetsurf-60c840628f4f2aebc86adea495258be1ecc738e8.tar.gz
netsurf-60c840628f4f2aebc86adea495258be1ecc738e8.tar.bz2
Small refactor to change icon names to being passed in from frontends instead of core treeview globals
svn path=/trunk/netsurf/; revision=11053
Diffstat (limited to 'desktop/hotlist.c')
-rw-r--r--desktop/hotlist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/desktop/hotlist.c b/desktop/hotlist.c
index 74b071d8e..cb5362050 100644
--- a/desktop/hotlist.c
+++ b/desktop/hotlist.c
@@ -111,8 +111,8 @@ static node_callback_resp hotlist_node_callback(void *user_data,
return NODE_CALLBACK_NOT_HANDLED;
}
-
-bool hotlist_initialise(struct tree *tree, const char *hotlist_path)
+/* exported interface documented in hotlist.h */
+bool hotlist_initialise(struct tree *tree, const char *hotlist_path, const char* folder_icon_name)
{
struct node *node;
const struct url_data *url_data;
@@ -123,9 +123,9 @@ bool hotlist_initialise(struct tree *tree, const char *hotlist_path)
creating_node = false;
- folder_icon = tree_load_icon(tree_directory_icon_name);
+ folder_icon = tree_load_icon(folder_icon_name);
- tree_url_node_init();
+ tree_url_node_init(folder_icon_name);
if (tree == NULL)
return false;