From a1194cd03ffca1ebe29275bdab7c03a441d554e1 Mon Sep 17 00:00:00 2001 From: Steve Fryatt Date: Sun, 24 Oct 2010 21:52:16 +0000 Subject: Re-enable toolbar editing and button selection in RO treeview windows. svn path=/trunk/netsurf/; revision=10907 --- riscos/treeview.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'riscos/treeview.c') 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)) { -- cgit v1.2.3