summaryrefslogtreecommitdiff
path: root/riscos
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 /riscos
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 'riscos')
-rw-r--r--riscos/cookies.c4
-rw-r--r--riscos/global_history.c3
-rw-r--r--riscos/hotlist.c3
-rw-r--r--riscos/sslcert.c2
-rw-r--r--riscos/treeview.h4
5 files changed, 12 insertions, 4 deletions
diff --git a/riscos/cookies.c b/riscos/cookies.c
index 51b1f5f25..5eb2191d2 100644
--- a/riscos/cookies.c
+++ b/riscos/cookies.c
@@ -93,7 +93,9 @@ void ro_gui_cookies_postinitialise(void)
/* Initialise the cookies into the tree. */
- cookies_initialise(ro_treeview_get_tree(cookies_window.tv));
+ cookies_initialise(ro_treeview_get_tree(cookies_window.tv),
+ tree_directory_icon_name,
+ tree_content_icon_name);
/* Build the cookies window menu. */
diff --git a/riscos/global_history.c b/riscos/global_history.c
index 2f4f8a1b5..d46600005 100644
--- a/riscos/global_history.c
+++ b/riscos/global_history.c
@@ -99,7 +99,8 @@ void ro_gui_global_history_postinitialise(void)
/* Initialise the global history into the tree. */
history_global_initialise(
- ro_treeview_get_tree(global_history_window.tv));
+ ro_treeview_get_tree(global_history_window.tv),
+ tree_directory_icon_name);
/* Build the global history window menu. */
diff --git a/riscos/hotlist.c b/riscos/hotlist.c
index 4c2c084d2..42976b893 100644
--- a/riscos/hotlist.c
+++ b/riscos/hotlist.c
@@ -97,7 +97,8 @@ void ro_gui_hotlist_postinitialise(void)
/* Initialise the hotlist into the tree. */
hotlist_initialise(ro_treeview_get_tree(hotlist_window.tv),
- option_hotlist_path);
+ option_hotlist_path,
+ tree_directory_icon_name);
/* Build the hotlist window menu. */
diff --git a/riscos/sslcert.c b/riscos/sslcert.c
index 990c2501c..f2af924a0 100644
--- a/riscos/sslcert.c
+++ b/riscos/sslcert.c
@@ -95,7 +95,7 @@ void ro_gui_cert_postinitialise(void)
{
/* Initialise the SSL module. */
- sslcert_init();
+ sslcert_init(tree_content_icon_name);
}
/**
diff --git a/riscos/treeview.h b/riscos/treeview.h
index 2b87d57e8..7ad6fb0fa 100644
--- a/riscos/treeview.h
+++ b/riscos/treeview.h
@@ -30,6 +30,10 @@
#include "desktop/tree.h"
+/* defined in front end code */
+extern const char tree_directory_icon_name[];
+extern const char tree_content_icon_name[];
+
typedef struct ro_treeview ro_treeview;
struct ro_treeview_table {