Expose tree_setup_colours so it can be called from frontends if the system

colour scheme changes.


svn path=/trunk/netsurf/; revision=13730
This commit is contained in:
Chris Young 2012-03-26 21:13:00 +00:00
parent 307df869c3
commit 103c8703ec
3 changed files with 5 additions and 2 deletions

View File

@ -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;
}

View File

@ -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 =

View File

@ -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 */