summaryrefslogtreecommitdiff
path: root/riscos/treeview.c
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2005-03-20 14:57:19 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2005-03-20 14:57:19 +0000
commit06419abcca6e601671d78fbda2102740bcf403a6 (patch)
tree4295ecbd2ef070df8c7185af6a45021f41522fe8 /riscos/treeview.c
parent44f1f35436c85ba3d8adf1ba3202db116bb4b914 (diff)
downloadnetsurf-06419abcca6e601671d78fbda2102740bcf403a6.tar.gz
netsurf-06419abcca6e601671d78fbda2102740bcf403a6.tar.bz2
[project @ 2005-03-20 14:57:19 by rjw]
Further work towards configurable toolbars. svn path=/import/netsurf/; revision=1551
Diffstat (limited to 'riscos/treeview.c')
-rw-r--r--riscos/treeview.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/riscos/treeview.c b/riscos/treeview.c
index a0d493dcc..0104b390f 100644
--- a/riscos/treeview.c
+++ b/riscos/treeview.c
@@ -830,6 +830,11 @@ void ro_gui_tree_toolbar_click(wimp_pointer* pointer, struct tree *tree) {
return;
}
+ if ((pointer->i < 0) && (current_toolbar)) {
+ ro_gui_theme_toolbar_editor_click(tree->toolbar, pointer);
+ return;
+ }
+
switch (pointer->i) {
case ICON_TOOLBAR_CREATE:
node = tree_create_folder_node(tree->root,
@@ -1037,6 +1042,8 @@ void ro_gui_tree_show(struct tree *tree) {
/* Cancel any editing
*/
+ if ((tree->toolbar) && (tree->toolbar->editor))
+ ro_gui_theme_toggle_edit(tree->toolbar);
ro_gui_tree_stop_edit(tree);
/* Set the default state