diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-05-27 23:52:35 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-05-27 23:52:35 +0100 |
commit | 7d02ae916a9984efb619eac279b4d8e12db0b678 (patch) | |
tree | bef9147faf3cc1d0acd08ca98ec6435c6b43eea5 /cocoa/gui.m | |
parent | 662e950e48b4ad595e602dfc4d51feb9ce75dbbb (diff) | |
download | netsurf-7d02ae916a9984efb619eac279b4d8e12db0b678.tar.gz netsurf-7d02ae916a9984efb619eac279b4d8e12db0b678.tar.bz2 |
make launch_url core operation use nsurl
Diffstat (limited to 'cocoa/gui.m')
-rw-r--r-- | cocoa/gui.m | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cocoa/gui.m b/cocoa/gui.m index 9ba614475..1cb19a756 100644 --- a/cocoa/gui.m +++ b/cocoa/gui.m @@ -253,9 +253,10 @@ static void gui_create_form_select_menu(struct browser_window *bw, [menu release]; } -static void gui_launch_url(const char *url) +static nserror gui_launch_url(nsurl *url) { - [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: [NSString stringWithUTF8String: url]]]; + [[NSWorkspace sharedWorkspace] openURL: [NSURL URLWithString: [NSString stringWithUTF8String: nsurl_access(url)]]]; + return NSERROR_OK; } struct ssl_cert_info; |