comparison dwtest.c @ 1294:4bc8b6ffbe1e

Code changes to enable default filename on Windows with dw_file_browse(). Also added an example in the test program.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 01 Nov 2011 10:21:48 +0000
parents b99b0b2c2826
children dbd507f42947
comparison
equal deleted inserted replaced
1293:0712ee0f311e 1294:4bc8b6ffbe1e
589 } 589 }
590 590
591 int DWSIGNAL browse_file_callback(HWND window, void *data) 591 int DWSIGNAL browse_file_callback(HWND window, void *data)
592 { 592 {
593 char *tmp; 593 char *tmp;
594 tmp = dw_file_browse("Pick a file", ".", "c", DW_FILE_OPEN ); 594 tmp = dw_file_browse("Pick a file", "dwtest.c", "c", DW_FILE_OPEN );
595 if ( tmp ) 595 if ( tmp )
596 { 596 {
597 if ( current_file ) 597 if ( current_file )
598 { 598 {
599 dw_free( current_file ); 599 dw_free( current_file );