summaryrefslogtreecommitdiff
path: root/riscos/treeview.c
diff options
context:
space:
mode:
authorSteve Fryatt <steve@stevefryatt.org.uk>2010-10-24 21:52:16 +0000
committerSteve Fryatt <steve@stevefryatt.org.uk>2010-10-24 21:52:16 +0000
commita1194cd03ffca1ebe29275bdab7c03a441d554e1 (patch)
tree0e77500e1034f72d6b66fee57f29f670ea07ed0b /riscos/treeview.c
parentba197f29c7e4784a6d649b262d3951e5e7fef41b (diff)
downloadnetsurf-a1194cd03ffca1ebe29275bdab7c03a441d554e1.tar.gz
netsurf-a1194cd03ffca1ebe29275bdab7c03a441d554e1.tar.bz2
Re-enable toolbar editing and button selection in RO treeview windows.
svn path=/trunk/netsurf/; revision=10907
Diffstat (limited to 'riscos/treeview.c')
-rw-r--r--riscos/treeview.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/riscos/treeview.c b/riscos/treeview.c
index 27e014cac..e67fc3ad8 100644
--- a/riscos/treeview.c
+++ b/riscos/treeview.c
@@ -933,14 +933,25 @@ void ro_treeview_update_theme(ro_treeview *tv)
/* \todo -- Check for toolbar editing here. */
ro_gui_theme_attach_toolbar(tv->tb, tv->w);
+ ro_treeview_update_toolbar(tv);
+ }
+}
+
+
+/**
+ * Change the size of a treeview's toolbar and redraw the window.
+ *
+ * \param *tv The treeview to update.
+ */
+
+void ro_treeview_update_toolbar(ro_treeview *tv)
+{
ro_treeview_set_origin(tv, 0,
-(ro_gui_theme_toolbar_height(tv->tb)));
xwimp_force_redraw(tv->w, 0, tv->extent.y, tv->extent.x, 0);
- }
-}
-
+}
#if 0
if ((tree) && (tree->toolbar)) {