From a0227890e917681daa771a3b2f8499305fd0136e Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Mon, 14 Jan 2013 01:01:22 +0100 Subject: Further work on search in browser window. --- atari/toolbar.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'atari/toolbar.h') diff --git a/atari/toolbar.h b/atari/toolbar.h index 1e552d520..81949796a 100644 --- a/atari/toolbar.h +++ b/atari/toolbar.h @@ -14,11 +14,8 @@ enum toolbar_textarea { }; struct s_url_widget -{ - /* widget is only redrawn when this flag is set */ - bool redraw; +{ struct textarea *textarea; - GRECT rdw_area; GRECT area; }; @@ -26,8 +23,7 @@ struct s_throbber_widget { short index; short max_index; - bool running; - GRECT area; + bool running; }; struct s_toolbar @@ -35,15 +31,16 @@ struct s_toolbar struct s_gui_win_root *owner; struct s_url_widget url; struct s_throbber_widget throbber; - GRECT btdim; GRECT area; /* size & location of buttons: */ struct s_tb_button * buttons; - bool attached; int btcnt; int style; + bool attached; bool redraw; - bool reflow; + bool reflow; + bool visible; + bool search_visible; }; @@ -63,6 +60,8 @@ struct textarea *toolbar_get_textarea(struct s_toolbar *tb, enum toolbar_textarea which); void toolbar_set_throbber_state(struct s_toolbar *tb, bool active); void toolbar_set_attached(struct s_toolbar *tb, bool attached); +void toolbar_set_visible(struct s_toolbar *tb, short area, bool visible); +void toolbar_set_reflow(struct s_toolbar *tb, bool do_reflow); void toolbar_redraw(struct s_toolbar *tb, GRECT *clip); void toolbar_throbber_progress(struct s_toolbar *tb); /* public events handlers: */ -- cgit v1.2.3