From 103c8703ecdb85b23b6583015d9228443d0d026d Mon Sep 17 00:00:00 2001 From: Chris Young Date: Mon, 26 Mar 2012 21:13:00 +0000 Subject: Expose tree_setup_colours so it can be called from frontends if the system colour scheme changes. svn path=/trunk/netsurf/; revision=13730 --- amiga/system_colour.c | 4 +++- desktop/tree.c | 2 +- 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 #include @@ -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 */ -- cgit v1.2.3