diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-10-29 00:17:11 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-10-29 00:18:12 +0000 |
commit | 7ace528729c37d665e269c8a76991739c9437088 (patch) | |
tree | c6e6d60655da38fecd8f9bd74980b01f402715e8 /amiga | |
parent | 4b941297aaa8de2b092b6b799fcfc91d6e0e4782 (diff) | |
download | netsurf-7ace528729c37d665e269c8a76991739c9437088.tar.gz netsurf-7ace528729c37d665e269c8a76991739c9437088.tar.bz2 |
Update url setting API to return nserror code instead of calling warn_user
Diffstat (limited to 'amiga')
-rw-r--r-- | amiga/gui.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index 9ee209efa..4788a08b0 100644 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -4774,12 +4774,11 @@ static void gui_window_set_status(struct gui_window *g, const char *text) } } -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) { int cur_tab = 0; if(!g) return; - if(!url) return; if(g->tab_node && (g->shared->tabs > 1)) GetAttr(CLICKTAB_Current, g->shared->objects[GID_TABS], (ULONG *)&cur_tab); @@ -4791,6 +4790,8 @@ static void gui_window_set_url(struct gui_window *g, const char *url) } ami_update_buttons(g->shared); + + return NSERROR_OK; } |