summaryrefslogtreecommitdiff
path: root/riscos/treeview.c
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2006-09-06 22:15:58 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2006-09-06 22:15:58 +0000
commit3e0c02e8e59fe41a250d54b760b0cd675044697f (patch)
tree3265bb4c158ee96f7cbee0420692d234f3a9ca32 /riscos/treeview.c
parentd5540f344d5048ce06ef86fa9072fbf38a260a48 (diff)
downloadnetsurf-3e0c02e8e59fe41a250d54b760b0cd675044697f.tar.gz
netsurf-3e0c02e8e59fe41a250d54b760b0cd675044697f.tar.bz2
Simplify and tidy up RISC OS gui_ functions. Fix toolbar height changing issues for framesets.
svn path=/trunk/netsurf/; revision=2924
Diffstat (limited to 'riscos/treeview.c')
-rw-r--r--riscos/treeview.c17
1 files changed, 17 insertions, 0 deletions
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);
+ }
+}