diff options
author | Ole Loots <ole@monochrom.net> | 2013-04-15 21:02:34 +0200 |
---|---|---|
committer | Ole Loots <ole@monochrom.net> | 2013-04-15 21:02:34 +0200 |
commit | 1dd92203df2d97398332940c2bc891ea3721ccf1 (patch) | |
tree | d01bef34157dae198cbdf5e44a554e9de6889905 /atari/toolbar.c | |
parent | 6675aa62dc01f84f5ad29035a9ce551f13296571 (diff) | |
download | netsurf-1dd92203df2d97398332940c2bc891ea3721ccf1.tar.gz netsurf-1dd92203df2d97398332940c2bc891ea3721ccf1.tar.bz2 |
Slightly improved intial hiding of toolbar search area.
Diffstat (limited to 'atari/toolbar.c')
-rw-r--r-- | atari/toolbar.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/atari/toolbar.c b/atari/toolbar.c index ade5ca3fc..18d8a456a 100644 --- a/atari/toolbar.c +++ b/atari/toolbar.c @@ -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; + } } } |