mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 17:23:09 +03:00
[project @ 2004-01-31 18:12:08 by jmb]
Stop grabbing input focus on fetch completion, unless the window already has the input focus. svn path=/import/netsurf/; revision=519
This commit is contained in:
parent
bf3e41a93d
commit
8866964740
@ -323,15 +323,19 @@ void gui_window_set_status(gui_window* g, const char* text)
|
||||
|
||||
void gui_window_set_url(gui_window *g, char *url)
|
||||
{
|
||||
wimp_caret c;
|
||||
strncpy(g->url, url, 255);
|
||||
wimp_set_icon_state(g->data.browser.toolbar, ICON_TOOLBAR_URL, 0, 0);
|
||||
/* Move the caret to the url bar.
|
||||
* It's ok to do this as this only gets
|
||||
* called when fetching a new page .
|
||||
*/
|
||||
wimp_set_caret_position(g->data.browser.toolbar,
|
||||
ICON_TOOLBAR_URL,
|
||||
0,0,-1, (int) strlen(g->url) - 1);
|
||||
wimp_get_caret_position(&c);
|
||||
if (c.w == g->window || c.w == g->data.browser.toolbar) {
|
||||
wimp_set_caret_position(g->data.browser.toolbar,
|
||||
ICON_TOOLBAR_URL,
|
||||
0,0,-1, (int) strlen(g->url) - 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user