From 7ace528729c37d665e269c8a76991739c9437088 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Wed, 29 Oct 2014 00:17:11 +0000 Subject: Update url setting API to return nserror code instead of calling warn_user --- cocoa/gui.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cocoa') diff --git a/cocoa/gui.m b/cocoa/gui.m index 28e68e9f7..c9cef1508 100644 --- a/cocoa/gui.m +++ b/cocoa/gui.m @@ -194,9 +194,10 @@ static void gui_window_set_pointer(struct gui_window *g, gui_pointer_shape shape } } -static void gui_window_set_url(struct gui_window *g, const char *url) +static nserror gui_window_set_url(struct gui_window *g, const char *url) { [(BrowserViewController *)g setUrl: [NSString stringWithUTF8String: url]]; + return NSERROR_OK; } static void gui_window_start_throbber(struct gui_window *g) -- cgit v1.2.3