diff options
Diffstat (limited to 'atari/toolbar.c')
-rw-r--r-- | atari/toolbar.c | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/atari/toolbar.c b/atari/toolbar.c index e830679d9..eefab5fc3 100644 --- a/atari/toolbar.c +++ b/atari/toolbar.c @@ -272,7 +272,7 @@ struct s_toolbar *toolbar_create(struct s_gui_win_root *owner) int i; struct s_toolbar *t; - LOG(""); + LOG("owner %p", owner); assert(init == true); @@ -330,7 +330,8 @@ struct s_toolbar *toolbar_create(struct s_gui_win_root *owner) t->throbber.max_index = THROBBER_MAX_INDEX; t->throbber.running = false; - LOG("created toolbar: %p, root: %p, textarea: %p, throbber: %p", t, owner, t->url.textarea, t->throbber); + LOG("created toolbar: %p, root: %p, textarea: %p, throbber: %p", + t, owner, t->url.textarea, &t->throbber); return( t ); } @@ -455,10 +456,12 @@ void toolbar_redraw(struct s_toolbar *tb, GRECT *clip) } -void toolbar_update_buttons(struct s_toolbar *tb, struct browser_window *bw, - short button) +void +toolbar_update_buttons(struct s_toolbar *tb, + struct browser_window *bw, + short button) { - LOG(""); + LOG("tb %p", tb); struct s_tb_button * bt; bool enable = false; @@ -580,9 +583,10 @@ void toolbar_set_dimensions(struct s_toolbar *tb, GRECT *area) } -void toolbar_set_url(struct s_toolbar *tb, const char * text) +void toolbar_set_url(struct s_toolbar *tb, const char *text) { - LOG(""); + LOG("tb %p", tb); + textarea_set_text(tb->url.textarea, text); if (tb->attached && tb->visible) { @@ -667,7 +671,7 @@ bool toolbar_text_input(struct s_toolbar *tb, char *text) { bool handled = true; - LOG(""); + LOG("tb %p", tb); return(handled); } @@ -752,11 +756,12 @@ bool toolbar_key_input(struct s_toolbar *tb, short nkc) void toolbar_mouse_input(struct s_toolbar *tb, short obj, short button) { - LOG(""); GRECT work; short mx, my, mb, kstat; struct gui_window * gw; + LOG("tb %p", tb); + if (obj==TOOLBAR_AREA_URL) { graf_mkstate(&mx, &my, &mb, &kstat); |