diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2012-03-22 09:34:34 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2012-03-22 09:34:34 +0000 |
commit | 1490b52a6b96b6a69a0c4fe9e0515dc717425128 (patch) | |
tree | 8caba44a9da98e6cebf4f188e3232534b1596a4d /amiga/arexx.c | |
parent | 0797bf5a5731b2c8d55105b453530584ea4e1f5b (diff) | |
download | netsurf-1490b52a6b96b6a69a0c4fe9e0515dc717425128.tar.gz netsurf-1490b52a6b96b6a69a0c4fe9e0515dc717425128.tar.bz2 |
NetSurf options rework (a=vince r=daniels,jmb)
svn path=/trunk/netsurf/; revision=13548
Diffstat (limited to 'amiga/arexx.c')
-rwxr-xr-x | amiga/arexx.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/amiga/arexx.c b/amiga/arexx.c index 4809ef1c3..4a24cb428 100755 --- a/amiga/arexx.c +++ b/amiga/arexx.c @@ -21,7 +21,7 @@ #include "amiga/arexx.h" #include "amiga/download.h" #include "amiga/gui.h" -#include "amiga/options.h" +#include "desktop/options.h" #include "amiga/theme.h" #include "desktop/browser.h" @@ -411,13 +411,13 @@ STATIC VOID rx_pubscreen(struct ARexxCmd *cmd, struct RexxMsg *rxm __attribute__ { cmd->ac_RC = 0; - if(!option_use_pubscreen || option_use_pubscreen[0] == '\0') + if(nsoption_charp(use_pubscreen) == NULL) { strcpy(result,"NetSurf"); } else { - strcpy(result,option_use_pubscreen); + strcpy(result, nsoption_charp(use_pubscreen)); } cmd->ac_Result = result; @@ -457,7 +457,7 @@ STATIC VOID rx_home(struct ARexxCmd *cmd, struct RexxMsg *rxm __attribute__((unu if((cmd->ac_ArgList[0]) && (cmd->ac_ArgList[1])) bw = ami_find_tab(*(ULONG *)cmd->ac_ArgList[0], *(ULONG *)cmd->ac_ArgList[1]); - if(bw) browser_window_go(bw, option_homepage_url, NULL, true); + if(bw) browser_window_go(bw, nsoption_charp(homepage_url), NULL, true); } STATIC VOID rx_reload(struct ARexxCmd *cmd, struct RexxMsg *rxm __attribute__((unused))) @@ -520,7 +520,7 @@ STATIC VOID rx_active(struct ARexxCmd *cmd, struct RexxMsg *rxm __attribute__((u int window = 0, tab = 0; struct browser_window *bw = curbw; struct nsObject *node, *nnode; - struct gui_window_2 *gwin; + struct gui_window_2 *gwin = NULL; cmd->ac_RC = 0; |