From ebd0f1366d6ea92d9fa354c4afd61c00ae1ea18a Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Mon, 9 Apr 2012 11:33:34 +0000 Subject: Removed debug output, text format changes... svn path=/trunk/netsurf/; revision=13841 --- atari/browser.c | 1 - atari/browser_win.c | 2 +- atari/hotlist.c | 24 ++++++++++++------------ 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/atari/browser.c b/atari/browser.c index 11878aad1..3d05dbd39 100755 --- a/atari/browser.c +++ b/atari/browser.c @@ -780,7 +780,6 @@ void browser_redraw( struct gui_window * gw ) if( wf_top[0] == gw->root->handle->handle && wf_top[1] == _AESapid ){ - printf("top redraw"); /* The window is on top, so there is no need to walk the */ /* AES rectangle list. */ for( i=0; iredraw.areas_used; i++ ){ diff --git a/atari/browser_win.c b/atari/browser_win.c index 71847c84d..f6179e351 100755 --- a/atari/browser_win.c +++ b/atari/browser_win.c @@ -112,7 +112,7 @@ int window_create( struct gui_window * gw, return( -1 ); memset( gw->root, 0, sizeof(struct s_gui_win_root) ); gw->root->title = malloc(atari_sysinfo.aes_max_win_title_len+1); - gw->root->handle = WindCreate( flags,40, 40, app.w, app.h ); + gw->root->handle = WindCreate( flags, 40, 40, app.w, app.h ); if( gw->root->handle == NULL ) { free( gw->root->title ); free( gw->root ); diff --git a/atari/hotlist.c b/atari/hotlist.c index 89c06c7fc..115534e56 100755 --- a/atari/hotlist.c +++ b/atari/hotlist.c @@ -45,8 +45,8 @@ struct atari_hotlist hl; static void evnt_hl_toolbar( WINDOW *win, short buff[8]) { - /* handle toolbar object (index in buff[4] ) */ - switch( buff[4] ) { + /* handle toolbar object (index in buff[4] ) */ + switch( buff[4] ) { case TOOLBAR_HOTLIST_CREATE_FOLDER: hotlist_add_folder(true); break; @@ -58,12 +58,12 @@ static void evnt_hl_toolbar( WINDOW *win, short buff[8]) { case TOOLBAR_HOTLIST_DELETE: hotlist_delete_selected(); break; - + case TOOLBAR_HOTLIST_EDIT: hotlist_edit_selected(); break; } - ObjcChange( OC_TOOLBAR, win, buff[4], ~SELECTED, OC_MSG ); + ObjcChange( OC_TOOLBAR, win, buff[4], ~SELECTED, OC_MSG ); } @@ -75,9 +75,9 @@ static void __CDECL evnt_hl_close( WINDOW *win, short buff[8] ) static void __CDECL evnt_hl_mbutton( WINDOW *win, short buff[8] ) { - /* todo: implement popup? + /* todo: implement popup? if(evnt.mbut & 2) { - + } */ } @@ -108,7 +108,7 @@ void hotlist_init(void) WindSetPtr( hl.window, WF_TOOLBAR, tree, evnt_hl_toolbar ); EvntAttach( hl.window, WM_CLOSED, evnt_hl_close ); EvntAttach( hl.window, WM_XBUTTON,evnt_hl_mbutton ); - hl.tv = atari_treeview_create( + hl.tv = atari_treeview_create( hotlist_get_tree_flags(), hl.window ); @@ -117,14 +117,14 @@ void hotlist_init(void) LOG(("Failed to allocate treeview")); return; } - + hotlist_initialise( hl.tv->tree, /* TODO: use option_hotlist_file or slt*/ (char*)&hl.path, "dir.png" ); - + } else { } @@ -132,7 +132,7 @@ void hotlist_init(void) } -void hotlist_open(void) +void hotlist_open(void) { if( hl.init == false ) { return; @@ -142,7 +142,7 @@ void hotlist_open(void) hl.open = true; atari_treeview_open( hl.tv ); } else { - WindTop( hl.window ); + WindTop( hl.window ); } } @@ -160,7 +160,7 @@ void hotlist_destroy(void) } if( hl.window != NULL ) { hotlist_cleanup( (char*)&hl.path ); - if( hl.open ) + if( hl.open ) hotlist_close(); WindDelete( hl.window ); hl.window = NULL; -- cgit v1.2.3