summaryrefslogtreecommitdiff
path: root/riscos/theme.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/theme.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/theme.c')
-rw-r--r--riscos/theme.c30
1 files changed, 27 insertions, 3 deletions
diff --git a/riscos/theme.c b/riscos/theme.c
index b5c5d8eb5..a2b893266 100644
--- a/riscos/theme.c
+++ b/riscos/theme.c
@@ -588,9 +588,9 @@ bool ro_gui_theme_apply(struct theme_descriptor *descriptor)
/* apply the theme to all the current windows */
ro_gui_window_update_theme();
- ro_gui_cookies_update_theme();
- ro_gui_global_history_update_theme();
- ro_gui_hotlist_update_theme();
+ ro_gui_cookies_update_theme(true);
+ ro_gui_global_history_update_theme(true);
+ ro_gui_hotlist_update_theme(true);
ro_gui_theme_close(theme_previous, false);
return true;
}
@@ -1600,6 +1600,30 @@ void ro_gui_theme_destroy_toolbar(struct toolbar *toolbar)
/**
+ * Refresh a toolbar after it has been updated
+ *
+ * \param toolbar the toolbar to update
+ */
+void ro_gui_theme_refresh_toolbar(struct toolbar *toolbar)
+{
+ assert(toolbar);
+
+ toolbar->reformat_buttons = true;
+ ro_gui_theme_process_toolbar(toolbar, -1);
+ if (toolbar->type == THEME_BROWSER_TOOLBAR) {
+ gui_window_update_extent(ro_gui_window_lookup(
+ current_menu_window));
+ } else if (toolbar->type == THEME_HOTLIST_TOOLBAR) {
+ ro_gui_hotlist_update_theme(false);
+ } else if (toolbar->type == THEME_HISTORY_TOOLBAR) {
+ ro_gui_global_history_update_theme(false);
+ } else if (toolbar->type == THEME_COOKIES_TOOLBAR) {
+ ro_gui_cookies_update_theme(false);
+ }
+}
+
+
+/**
* Toggles the toolbar editing mode
*
* \param toolbar the toolbar to toggle editing for