mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-05 17:14:27 +03:00
Slightly improved intial hiding of toolbar search area.
This commit is contained in:
parent
6675aa62dc
commit
1dd92203df
@ -403,13 +403,13 @@ void window_open(ROOTWIN *rootwin, struct gui_window *gw, GRECT pos)
|
||||
toolbar_set_dimensions(rootwin->toolbar, &g);
|
||||
|
||||
/* initially hide the search area of the toolbar: */
|
||||
toolbar_set_visible(rootwin->toolbar, TOOLBAR_AREA_SEARCH, false);
|
||||
window_get_grect(rootwin, BROWSER_AREA_TOOLBAR, &g);
|
||||
gemtk_wm_set_toolbar_size(rootwin->win, g.g_h);
|
||||
window_close_search(rootwin);
|
||||
|
||||
window_update_back_forward(rootwin);
|
||||
|
||||
window_set_focus(rootwin, BROWSER, rootwin->active_gui_window->browser);
|
||||
|
||||
|
||||
}
|
||||
|
||||
void window_restore_active_gui_window(ROOTWIN *rootwin)
|
||||
|
@ -634,6 +634,12 @@ void toolbar_set_visible(struct s_toolbar *tb, short area, bool visible)
|
||||
else if (area == TOOLBAR_AREA_SEARCH) {
|
||||
tb->search_visible = visible;
|
||||
tb->reflow = true;
|
||||
OBJECT *frm = toolbar_get_form(tb);
|
||||
if(visible == false){
|
||||
frm[TOOLBAR_AREA_SEARCH].ob_flags |= OF_HIDETREE;
|
||||
} else {
|
||||
frm[TOOLBAR_AREA_SEARCH].ob_flags &= ~OF_HIDETREE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user