diff options
author | Steve Fryatt <steve@stevefryatt.org.uk> | 2011-02-20 23:16:33 +0000 |
---|---|---|
committer | Steve Fryatt <steve@stevefryatt.org.uk> | 2011-02-20 23:16:33 +0000 |
commit | cd9c0998e9849472473e577c4c04906e380896e1 (patch) | |
tree | 9bef19ebd3d56eccd03fa5613f1506c82762584b /riscos/treeview.h | |
parent | f54fc080c2a96ffdb713a9c8b5d0ccb604197c07 (diff) | |
download | netsurf-cd9c0998e9849472473e577c4c04906e380896e1.tar.gz netsurf-cd9c0998e9849472473e577c4c04906e380896e1.tar.bz2 |
Merge branches/stevef/toolbars to trunk.
svn path=/trunk/netsurf/; revision=11741
Diffstat (limited to 'riscos/treeview.h')
-rw-r--r-- | riscos/treeview.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/riscos/treeview.h b/riscos/treeview.h index 7f4da9074..54919522b 100644 --- a/riscos/treeview.h +++ b/riscos/treeview.h @@ -29,6 +29,7 @@ #include <oslib/wimp.h> #include "desktop/tree.h" +#include "riscos/toolbar.h" /* defined in front end code */ extern const char tree_directory_icon_name[]; @@ -36,13 +37,16 @@ extern const char tree_content_icon_name[]; typedef struct ro_treeview ro_treeview; -struct ro_treeview_table { - void (*open_menu)(wimp_pointer *pointer); +struct ro_treeview_callbacks { + void (*toolbar_button_click)(button_bar_action action); + void (*toolbar_button_update)(void); + void (*toolbar_button_save)(char *); }; ro_treeview *ro_treeview_create(wimp_w window, struct toolbar *toolbar, - unsigned int flags); + struct ro_treeview_callbacks *callbacks, unsigned int flags); void ro_treeview_destroy(ro_treeview *tv); +const struct toolbar_callbacks *ro_treeview_get_toolbar_callbacks(void); struct tree *ro_treeview_get_tree(ro_treeview *tv); wimp_w ro_treeview_get_window(ro_treeview *tv); @@ -51,8 +55,6 @@ bool ro_treeview_has_selection(ro_treeview *tv); void ro_treeview_set_origin(ro_treeview *tv, int x, int y); void ro_treeview_mouse_at(wimp_pointer *pointer); void ro_treeview_drag_end(wimp_dragged *drag); -void ro_treeview_update_theme(ro_treeview *tv); -void ro_treeview_update_toolbar(ro_treeview *tv); int ro_treeview_get_help(help_full_message_request *message_data); #endif |