From 1490b52a6b96b6a69a0c4fe9e0515dc717425128 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Thu, 22 Mar 2012 09:34:34 +0000 Subject: NetSurf options rework (a=vince r=daniels,jmb) svn path=/trunk/netsurf/; revision=13548 --- riscos/global_history.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'riscos/global_history.c') diff --git a/riscos/global_history.c b/riscos/global_history.c index a6b43b863..ca51b7253 100644 --- a/riscos/global_history.c +++ b/riscos/global_history.c @@ -36,7 +36,7 @@ #include "riscos/global_history.h" #include "riscos/gui.h" #include "riscos/menus.h" -#include "riscos/options.h" +#include "desktop/options.h" #include "riscos/save.h" #include "riscos/toolbar.h" #include "riscos/treeview.h" @@ -102,7 +102,7 @@ void ro_gui_global_history_postinitialise(void) if (global_history_window.toolbar != NULL) { ro_toolbar_add_buttons(global_history_window.toolbar, global_history_toolbar_buttons, - option_toolbar_history); + nsoption_charp(toolbar_history)); ro_toolbar_rebuild(global_history_window.toolbar); } @@ -246,9 +246,7 @@ void ro_gui_global_history_toolbar_update_buttons(void) void ro_gui_global_history_toolbar_save_buttons(char *config) { - if (option_toolbar_history != NULL) - free(option_toolbar_history); - option_toolbar_history = config; + nsoption_set_charp(toolbar_history, config); ro_gui_save_options(); } -- cgit v1.2.3