diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-03-26 21:13:00 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2012-03-26 21:13:00 +0000 |
commit | 103c8703ecdb85b23b6583015d9228443d0d026d (patch) | |
tree | e7e09fefa3838d04017d66aa4565407cf1665ce0 | |
parent | 307df869c33cb3317d330201d069399a9f91afec (diff) | |
download | netsurf-103c8703ecdb85b23b6583015d9228443d0d026d.tar.gz netsurf-103c8703ecdb85b23b6583015d9228443d0d026d.tar.bz2 |
Expose tree_setup_colours so it can be called from frontends if the system
colour scheme changes.
svn path=/trunk/netsurf/; revision=13730
-rw-r--r-- | amiga/system_colour.c | 4 | ||||
-rw-r--r-- | desktop/tree.c | 2 | ||||
-rw-r--r-- | desktop/tree.h | 1 |
3 files changed, 5 insertions, 2 deletions
diff --git a/amiga/system_colour.c b/amiga/system_colour.c index e520bf448..a9c695057 100644 --- a/amiga/system_colour.c +++ b/amiga/system_colour.c @@ -26,6 +26,7 @@ #include "utils/log.h" #include "desktop/gui.h" #include "desktop/options.h" +#include "desktop/tree.h" #include <proto/graphics.h> #include <proto/intuition.h> @@ -290,7 +291,8 @@ bool gui_system_colour_init(void) } gui_system_colour_pw = colour_list; - + tree_setup_colours(); + return true; } diff --git a/desktop/tree.c b/desktop/tree.c index 4928d3e91..8bb066630 100644 --- a/desktop/tree.c +++ b/desktop/tree.c @@ -183,7 +183,7 @@ void tree_set_icon_dir(char *icon_dir) /** * Set up colours for plot styles used in tree redraw. */ -static void tree_setup_colours(void) +void tree_setup_colours(void) { /* Background colour */ plot_style_fill_tree_background.fill_colour = diff --git a/desktop/tree.h b/desktop/tree.h index b0b7d2cc1..8ac505783 100644 --- a/desktop/tree.h +++ b/desktop/tree.h @@ -130,6 +130,7 @@ typedef node_callback_resp (*tree_node_user_callback)(void *user_data, /* Non-platform specific code */ void tree_set_icon_dir(char *icon_dir); +void tree_setup_colours(void); /* Functions for creating/deleting tree primitives and for tree structure manipulation */ |