Removed debug output, text format changes...

svn path=/trunk/netsurf/; revision=13841
This commit is contained in:
Ole Loots 2012-04-09 11:33:34 +00:00
parent 96a2906298
commit ebd0f1366d
3 changed files with 13 additions and 14 deletions

View File

@ -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; i<b->redraw.areas_used; i++ ){

View File

@ -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 );

View File

@ -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;