From 0fb16c18cbb1fa0072fde8ab6f05c2a2e99affc5 Mon Sep 17 00:00:00 2001 From: Ole Loots Date: Sat, 12 Feb 2011 19:43:32 +0000 Subject: Added better checkboxes svn path=/trunk/netsurf/; revision=11655 --- atari/download.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'atari') diff --git a/atari/download.c b/atari/download.c index ba27bb23d..a58b05a96 100755 --- a/atari/download.c +++ b/atari/download.c @@ -76,13 +76,6 @@ static void __CDECL evnt_cbrdy_click { struct gui_download_window * dw = (struct gui_download_window *)data; assert( dw != NULL ); - ObjcChange( OC_FORM, win, index, ~SELECTED, TRUE); - OBJECT * tree = ObjcTree(OC_FORM, win ); - if( (tree[DOWNLOAD_CB_CLOSE_RDY].ob_state & CROSSED) != 0 ) { - ObjcChange( OC_FORM, win, index, ~CROSSED, TRUE); - } else { - ObjcChange( OC_FORM, win, index, CROSSED, TRUE); - } } static void __CDECL evnt_close( WINDOW *win, short buff[8], void * data) @@ -253,6 +246,8 @@ nserror gui_download_window_data(struct gui_download_window *dw, fwrite( data , size, sizeof(unsigned char),dw->fd ); dw->size_downloaded += size; + gui_multitask(); + /* Update the progress bar... */ if( tnow - dw->lastrdw > 1 ) { dw->lastrdw = tnow; @@ -305,7 +300,7 @@ void gui_download_window_done(struct gui_download_window *dw) } OBJECT * tree = ObjcTree(OC_FORM, dw->form ); ObjcChange( OC_FORM, dw->form, DOWNLOAD_BT_ABORT, DISABLED, TRUE); - if( (tree[DOWNLOAD_CB_CLOSE_RDY].ob_state & CROSSED) != 0 ) { + if( (tree[DOWNLOAD_CB_CLOSE_RDY].ob_state & SELECTED) != 0 ) { ApplWrite( _AESapid, WM_CLOSED, dw->form->handle, 0,0,0,0); } } \ No newline at end of file -- cgit v1.2.3