From 1dd92203df2d97398332940c2bc891ea3721ccf1 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Mon, 15 Apr 2013 21:02:34 +0200 Subject: Slightly improved intial hiding of toolbar search area. --- atari/toolbar.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'atari/toolbar.c') 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; + } } } -- cgit v1.2.3