comparison dwtest.c @ 1821:69f9aa1e1b1e

Added bitmap button support to dw_window_set_bitmap() and added missing extention handling. Plus added a simple test of the code to dwtest.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 26 Oct 2012 04:46:13 +0000
parents 9fb8339ae458
children b35e041fc114
comparison
equal deleted inserted replaced
1820:ece7befa9f3d 1821:69f9aa1e1b1e
1292 dw_signal_connect( abutton1, DW_SIGNAL_CLICKED, DW_SIGNAL_FUNC(button_callback), NULL ); 1292 dw_signal_connect( abutton1, DW_SIGNAL_CLICKED, DW_SIGNAL_FUNC(button_callback), NULL );
1293 dw_box_pack_start( buttonboxperm, 0, 25, 5, FALSE, FALSE, 0 ); 1293 dw_box_pack_start( buttonboxperm, 0, 25, 5, FALSE, FALSE, 0 );
1294 abutton2 = dw_bitmapbutton_new_from_file( "Bottom", 0, FOLDER_ICON_NAME ); 1294 abutton2 = dw_bitmapbutton_new_from_file( "Bottom", 0, FOLDER_ICON_NAME );
1295 dw_box_pack_start( buttonsbox, abutton2, 25, 25, FALSE, FALSE, 0 ); 1295 dw_box_pack_start( buttonsbox, abutton2, 25, 25, FALSE, FALSE, 0 );
1296 dw_signal_connect( abutton2, DW_SIGNAL_CLICKED, DW_SIGNAL_FUNC(button_callback), NULL ); 1296 dw_signal_connect( abutton2, DW_SIGNAL_CLICKED, DW_SIGNAL_FUNC(button_callback), NULL );
1297 dw_window_set_bitmap(abutton2, 0, FILE_ICON_NAME);
1297 1298
1298 create_button(0); 1299 create_button(0);
1299 /* make a combobox */ 1300 /* make a combobox */
1300 combox = dw_box_new(DW_VERT, 2); 1301 combox = dw_box_new(DW_VERT, 2);
1301 dw_box_pack_start( notebookbox5, combox, 25, 200, TRUE, FALSE, 0); 1302 dw_box_pack_start( notebookbox5, combox, 25, 200, TRUE, FALSE, 0);