diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-01-20 20:03:55 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-01-20 20:03:55 +0000 |
commit | d0f7247ea67491b4bfae28cb90538b68c6f83d70 (patch) | |
tree | 5a11197792c9d5a1279b38c5d24acdfa4b9dfa85 /amiga/launch.c | |
parent | 65ab38fc1c26bed356fc61dd4adfe1f0495fab65 (diff) | |
parent | 2b9df1b2cd30e394ebb4e9be721b7d219c4e418c (diff) | |
download | netsurf-d0f7247ea67491b4bfae28cb90538b68c6f83d70.tar.gz netsurf-d0f7247ea67491b4bfae28cb90538b68c6f83d70.tar.bz2 |
Merge branch 'master' of git://git.netsurf-browser.org/netsurf
Diffstat (limited to 'amiga/launch.c')
-rwxr-xr-x | amiga/launch.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/amiga/launch.c b/amiga/launch.c index c3f993b28..5f22bdc23 100755 --- a/amiga/launch.c +++ b/amiga/launch.c @@ -124,8 +124,11 @@ static BOOL ami_openurl_check_list(struct MinList *list, nsurl *url) void ami_openurl_open(void) { if(nsoption_bool(use_openurl_lib)) { - if((OpenURLBase = OpenLibrary("openurl.library",0))) + if((OpenURLBase = OpenLibrary("openurl.library",0))) { +#ifdef __amigaos4__ IOpenURL = (struct OpenURLIFace *)GetInterface(OpenURLBase,"main",1,NULL); +#endif + } } NewMinList(&ami_unsupportedprotocols); @@ -133,7 +136,9 @@ void ami_openurl_open(void) void ami_openurl_close(void) { +#ifdef __amigaos4__ if(IOpenURL) DropInterface((struct Interface *)IOpenURL); +#endif if(OpenURLBase) CloseLibrary(OpenURLBase); ami_openurl_free_list(&ami_unsupportedprotocols); @@ -141,7 +146,9 @@ void ami_openurl_close(void) nserror gui_launch_url(struct nsurl *url) { +#ifdef __amigaos4__ APTR procwin = SetProcWindow((APTR)-1L); +#endif char *launchurl = NULL; if(ami_openurl_check_list(&ami_unsupportedprotocols, url) == FALSE) @@ -162,8 +169,8 @@ nserror gui_launch_url(struct nsurl *url) } } } - +#ifdef __amigaos4__ SetProcWindow(procwin); - +#endif return NSERROR_OK; } |