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 --- atari/ctxmenu.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'atari/ctxmenu.c') diff --git a/atari/ctxmenu.c b/atari/ctxmenu.c index 76001ff39..3e481e048 100644 --- a/atari/ctxmenu.c +++ b/atari/ctxmenu.c @@ -44,7 +44,7 @@ #include "atari/browser_win.h" #include "atari/misc.h" #include "atari/clipboard.h" -#include "atari/options.h" +#include "desktop/options.h" #include "atari/res/netsurf.rsh" #include "atari/ctxmenu.h" @@ -245,7 +245,7 @@ void context_popup( struct gui_window * gw, short x, short y ) break; case POP_CTX_VIEW_SOURCE: - if( option_atari_editor != NULL ) { + if( nsoption_charp(atari_editor) != NULL ) { data = content_get_source_data( gw->browser->bw->current_content, &size ); if( size > 0 && data != NULL ){ tempfile = tmpnam( NULL ); @@ -255,11 +255,12 @@ void context_popup( struct gui_window * gw, short x, short y ) fclose( fp_tmpfile ); // TODO: check if app is runnin, if not, use pexec or such. - /*sprintf((char*)&cmdline, "%s \"%s\"", option_atari_editor, tempfile ); - system( (char*)&cmdline ); + /* + sprintf((char*)&cmdline, "%s \"%s\"", nsoption_charp(atari_editor), tempfile ); + system( (char*)&cmdline ); */ - err = ShelWrite( option_atari_editor, tempfile , option_atari_editor, 1, 0); - LOG(("Launched: %s %s (%d)\n", option_atari_editor, tempfile, err )); + err = ShelWrite( nsoption_charp(atari_editor), tempfile , nsoption_charp(atari_editor), 1, 0); + LOG(("Launched: %s %s (%d)\n", nsoption_charp(atari_editor), tempfile, err )); } else { printf("Could not open temp file: %s!\n", tempfile ); } -- cgit v1.2.3