From c14ddad660d3c07f8dbdc8f8db902e5767821d9c Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sun, 2 Nov 2014 22:30:45 +0000 Subject: change url setting api to take an nsurl instead of a text string --- cocoa/gui.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cocoa') diff --git a/cocoa/gui.m b/cocoa/gui.m index c9cef1508..2bce0cd2b 100644 --- a/cocoa/gui.m +++ b/cocoa/gui.m @@ -194,9 +194,9 @@ static void gui_window_set_pointer(struct gui_window *g, gui_pointer_shape shape } } -static nserror gui_window_set_url(struct gui_window *g, const char *url) +static nserror gui_window_set_url(struct gui_window *g, struct nsurl *url) { - [(BrowserViewController *)g setUrl: [NSString stringWithUTF8String: url]]; + [(BrowserViewController *)g setUrl: [NSString stringWithUTF8String: nsurl_access(url)]]; return NSERROR_OK; } -- cgit v1.2.3