From 3e0c02e8e59fe41a250d54b760b0cd675044697f Mon Sep 17 00:00:00 2001 From: Richard Wilson Date: Wed, 6 Sep 2006 22:15:58 +0000 Subject: Simplify and tidy up RISC OS gui_ functions. Fix toolbar height changing issues for framesets. svn path=/trunk/netsurf/; revision=2924 --- riscos/treeview.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'riscos/treeview.c') diff --git a/riscos/treeview.c b/riscos/treeview.c index 4978f9cd7..7bde041c7 100644 --- a/riscos/treeview.c +++ b/riscos/treeview.c @@ -1490,3 +1490,20 @@ bool ro_gui_tree_launch_node(struct tree *tree, struct node *node) { int ro_gui_tree_help(int x, int y) { return -1; } + + +void ro_gui_tree_update_theme(struct tree *tree) { + if ((tree) && (tree->toolbar)) { + if (tree->toolbar->editor) + if (!ro_gui_theme_update_toolbar(NULL, tree->toolbar->editor)) + tree->toolbar->editor = NULL; + if (!ro_gui_theme_update_toolbar(NULL, tree->toolbar)) { + ro_gui_theme_destroy_toolbar(tree->toolbar); + tree->toolbar = NULL; + } + ro_gui_theme_toolbar_editor_sync(tree->toolbar); + ro_gui_theme_attach_toolbar(tree->toolbar, (wimp_w)tree->handle); + tree_resized(tree); + xwimp_force_redraw((wimp_w)tree->handle, 0, -16384, 16384, 16384); + } +} -- cgit v1.2.3