summaryrefslogtreecommitdiff
path: root/riscos/hotlist.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@netsurf-browser.org>2012-03-22 09:34:34 +0000
committerVincent Sanders <vince@netsurf-browser.org>2012-03-22 09:34:34 +0000
commit1490b52a6b96b6a69a0c4fe9e0515dc717425128 (patch)
tree8caba44a9da98e6cebf4f188e3232534b1596a4d /riscos/hotlist.c
parent0797bf5a5731b2c8d55105b453530584ea4e1f5b (diff)
downloadnetsurf-1490b52a6b96b6a69a0c4fe9e0515dc717425128.tar.gz
netsurf-1490b52a6b96b6a69a0c4fe9e0515dc717425128.tar.bz2
NetSurf options rework (a=vince r=daniels,jmb)
svn path=/trunk/netsurf/; revision=13548
Diffstat (limited to 'riscos/hotlist.c')
-rw-r--r--riscos/hotlist.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/riscos/hotlist.c b/riscos/hotlist.c
index 532a657ca..a01b9256e 100644
--- a/riscos/hotlist.c
+++ b/riscos/hotlist.c
@@ -39,7 +39,7 @@
#include "riscos/hotlist.h"
#include "riscos/menus.h"
#include "riscos/message.h"
-#include "riscos/options.h"
+#include "desktop/options.h"
#include "riscos/save.h"
#include "riscos/toolbar.h"
#include "riscos/treeview.h"
@@ -123,7 +123,7 @@ void ro_gui_hotlist_postinitialise(void)
if (hotlist_window.toolbar != NULL) {
ro_toolbar_add_buttons(hotlist_window.toolbar,
hotlist_toolbar_buttons,
- option_toolbar_hotlist);
+ nsoption_charp(toolbar_hotlist));
ro_toolbar_rebuild(hotlist_window.toolbar);
}
@@ -143,7 +143,7 @@ void ro_gui_hotlist_postinitialise(void)
/* Initialise the hotlist into the tree. */
hotlist_initialise(ro_treeview_get_tree(hotlist_window.tv),
- option_hotlist_path,
+ nsoption_charp(hotlist_path),
tree_directory_icon_name);
@@ -200,10 +200,11 @@ void ro_gui_hotlist_open(void)
os_error *error;
char command[2048];
- if (option_external_hotlists && option_external_hotlist_app != NULL &&
- *option_external_hotlist_app != '\0') {
+ if (nsoption_bool(external_hotlists) &&
+ nsoption_charp(external_hotlist_app) != NULL &&
+ *nsoption_charp(external_hotlist_app) != '\0') {
snprintf(command, sizeof(command), "Filer_Run %s",
- option_external_hotlist_app);
+ nsoption_charp(external_hotlist_app));
error = xos_cli(command);
if (error == NULL)
@@ -292,9 +293,7 @@ void ro_gui_hotlist_toolbar_update_buttons(void)
void ro_gui_hotlist_toolbar_save_buttons(char *config)
{
- if (option_toolbar_hotlist != NULL)
- free(option_toolbar_hotlist);
- option_toolbar_hotlist = config;
+ nsoption_set_charp(toolbar_hotlist, config);
ro_gui_save_options();
}
@@ -481,7 +480,7 @@ void ro_gui_hotlist_add_page(const char *url)
* own hotlist and return...
*/
- if (!option_external_hotlists) {
+ if (!nsoption_bool(external_hotlists)) {
hotlist_add_page(url);
return;
}