mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
fix beos url setting function to return error code
This commit is contained in:
parent
d900feefba
commit
847e1111bc
@ -2166,18 +2166,21 @@ void gui_window_set_status(struct gui_window *_g, const char *text)
|
||||
g->top_view->UnlockLooper();
|
||||
}
|
||||
|
||||
nserror gui_window_set_url(struct gui_window *_g, const char *url)
|
||||
nserror gui_window_set_url(struct gui_window *gw, const char *url)
|
||||
{
|
||||
struct beos_scaffolding *g = nsbeos_get_scaffold(_g);
|
||||
if (g->top_level != _g) return;
|
||||
struct beos_scaffolding *g;
|
||||
|
||||
g = nsbeos_get_scaffold(gw);
|
||||
if (g->top_level != gw)
|
||||
return NSERROR_OK;
|
||||
|
||||
assert(g->status_bar);
|
||||
|
||||
if (!g->top_view->LockLooper())
|
||||
return;
|
||||
|
||||
if (g->top_view->LockLooper()) {
|
||||
g->url_bar->SetText(url);
|
||||
|
||||
g->top_view->UnlockLooper();
|
||||
}
|
||||
|
||||
return NSERROR_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user