Mercurial > dwindows
diff 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 |
line wrap: on
line diff
--- a/dwtest.c Thu Oct 25 23:15:46 2012 +0000 +++ b/dwtest.c Fri Oct 26 04:46:13 2012 +0000 @@ -1294,6 +1294,7 @@ abutton2 = dw_bitmapbutton_new_from_file( "Bottom", 0, FOLDER_ICON_NAME ); dw_box_pack_start( buttonsbox, abutton2, 25, 25, FALSE, FALSE, 0 ); dw_signal_connect( abutton2, DW_SIGNAL_CLICKED, DW_SIGNAL_FUNC(button_callback), NULL ); + dw_window_set_bitmap(abutton2, 0, FILE_ICON_NAME); create_button(0); /* make a combobox */