From 60c840628f4f2aebc86adea495258be1ecc738e8 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Tue, 14 Dec 2010 00:18:24 +0000 Subject: Small refactor to change icon names to being passed in from frontends instead of core treeview globals svn path=/trunk/netsurf/; revision=11053 --- desktop/hotlist.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'desktop/hotlist.c') 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; -- cgit v1.2.3