[project @ 2004-03-09 23:57:40 by bursa]

Set caret in new window url line.

svn path=/import/netsurf/; revision=596
This commit is contained in:
James Bursa 2004-03-09 23:57:40 +00:00
parent b5ba716f15
commit b56bc523b8
1 changed files with 7 additions and 0 deletions

View File

@ -59,6 +59,7 @@ gui_window *gui_create_browser_window(struct browser_window *bw)
wimp_window window;
wimp_window_state state;
wimp_outline outline;
os_error *error;
gui_window* g = (gui_window*) xcalloc(1, sizeof(gui_window));
g->type = GUI_BROWSER_WINDOW;
@ -158,6 +159,12 @@ gui_window *gui_create_browser_window(struct browser_window *bw)
wimp_CHILD_LINKS_PARENT_VISIBLE_TOP_OR_RIGHT
<< wimp_CHILD_TS_EDGE_SHIFT);
error = xwimp_set_caret_position(g->data.browser.toolbar,
ICON_TOOLBAR_URL, -1, -1, -1, 0);
if (error)
LOG(("xwimp_set_caret_position: 0x%x: %s",
error->errnum, error->errmess));
return g;
}