summaryrefslogtreecommitdiff
path: root/atari/rootwin.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-04-20 10:43:58 +0100
committerVincent Sanders <vince@kyllikki.org>2016-04-20 10:43:58 +0100
commit3930d00519bbcee968a804b1f445c1638531cc15 (patch)
tree33ff87e76dd6f95d0e4eba80019149bbe59a6001 /atari/rootwin.c
parent759c34b32447417faeec20513a0e586230f246cd (diff)
downloadnetsurf-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/rootwin.c')
-rw-r--r--atari/rootwin.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/atari/rootwin.c b/atari/rootwin.c
index c9f507167..605ce45ae 100644
--- a/atari/rootwin.c
+++ b/atari/rootwin.c
@@ -405,26 +405,26 @@ void window_restore_active_gui_window(ROOTWIN *rootwin)
GRECT tb_area;
struct gui_window *gw;
- LOG("");
+ LOG("rootwin %p", rootwin);
assert(rootwin->active_gui_window);
gw = rootwin->active_gui_window;
- window_set_icon(rootwin, gw->icon);
- window_set_stauts(rootwin, gw->status);
- window_set_title(rootwin, gw->title);
+ window_set_icon(rootwin, gw->icon);
+ window_set_stauts(rootwin, gw->status);
+ window_set_title(rootwin, gw->title);
if (gw->search != NULL) {
// TODO: update search session (especially browser window)
- }
+ }
toolbar_get_grect(rootwin->toolbar, 0, &tb_area);
gemtk_wm_set_toolbar_size(rootwin->win, tb_area.g_h);
window_update_back_forward(rootwin);
- toolbar_set_url(rootwin->toolbar, gw->url);
+ toolbar_set_url(rootwin->toolbar, gw->url);
}
@@ -564,14 +564,14 @@ void window_set_active_gui_window(ROOTWIN *rootwin, struct gui_window *gw)
{
struct gui_window *old_gw = rootwin->active_gui_window;
- LOG("");
+ LOG("gw %p",gw);
- if (rootwin->active_gui_window != NULL) {
- if(rootwin->active_gui_window == gw) {
- LOG("nothing to do...");
- return;
+ if (rootwin->active_gui_window != NULL) {
+ if(rootwin->active_gui_window == gw) {
+ LOG("nothing to do...");
+ return;
+ }
}
- }
// TODO: when the window isn't on top, initiate WM_TOPPED.
@@ -652,7 +652,7 @@ void window_open_search(ROOTWIN *rootwin, bool reformat)
GRECT area;
OBJECT *obj;
- LOG("");
+ LOG("rootwin %p", rootwin);
gw = rootwin->active_gui_window;
bw = gw->browser->bw;
@@ -1469,7 +1469,7 @@ static void on_file_dropped(ROOTWIN *rootwin, short msg[8])
buff[size] = 0;
- LOG("file: %s, ext: %s, size: %d dropped at: %d,%d\n", (char *)buff, (char *)&ext, size, mx, my);
+ LOG("file: %s, ext: %s, size: %ld dropped at: %d,%d\n", (char *)buff, (char *)&ext, size, mx, my);
gui_window_get_scroll(gw, &sx, &sy);