diff options
author | Vincent Sanders <vince@kyllikki.org> | 2016-04-20 10:43:58 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2016-04-20 10:43:58 +0100 |
commit | 3930d00519bbcee968a804b1f445c1638531cc15 (patch) | |
tree | 33ff87e76dd6f95d0e4eba80019149bbe59a6001 /atari/toolbar.c | |
parent | 759c34b32447417faeec20513a0e586230f246cd (diff) | |
download | netsurf-3930d00519bbcee968a804b1f445c1638531cc15.tar.gz netsurf-3930d00519bbcee968a804b1f445c1638531cc15.tar.bz2 |
atari header cleanup and warning squash
This rationalises atari platform user of headers and squashes a lot of
warnings. Should not be viewed as real maintenance, more that it was
getting in the way of fixing real core header issues.
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); |