comparison dwtest.c @ 2002:a2931caa3422

Fix setting/getting dates in dw_calendar under macos. Only tested on Mojave. Sorry about the white space changes.
author mhessling@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 04 Nov 2019 01:15:03 +0000
parents 31179c5a3c5a
children 74facb490f5a
comparison
equal deleted inserted replaced
2001:f7acca46f795 2002:a2931caa3422
1224 containerinfo = dw_container_alloc(container, 3); 1224 containerinfo = dw_container_alloc(container, 3);
1225 1225
1226 for(z=0;z<3;z++) 1226 for(z=0;z<3;z++)
1227 { 1227 {
1228 char names[100]; 1228 char names[100];
1229 1229
1230 sprintf(names, "We can now allocate from the stack: Item: %d", z); 1230 sprintf(names, "We can now allocate from the stack: Item: %d", z);
1231 size = z*100; 1231 size = z*100;
1232 sprintf(buffer, "Filename %d",z+1); 1232 sprintf(buffer, "Filename %d",z+1);
1233 if (z == 0 ) thisicon = foldericon; 1233 if (z == 0 ) thisicon = foldericon;
1234 else thisicon = fileicon; 1234 else thisicon = fileicon;
1311 1311
1312 calbox = dw_box_new(DW_HORZ, 0); 1312 calbox = dw_box_new(DW_HORZ, 0);
1313 dw_box_pack_start(notebookbox5, calbox, 500, 200, TRUE, TRUE, 1); 1313 dw_box_pack_start(notebookbox5, calbox, 500, 200, TRUE, TRUE, 1);
1314 cal = dw_calendar_new(100); 1314 cal = dw_calendar_new(100);
1315 dw_box_pack_start(calbox, cal, 180, 120, TRUE, TRUE, 0); 1315 dw_box_pack_start(calbox, cal, 180, 120, TRUE, TRUE, 0);
1316 /* 1316
1317 dw_calendar_set_date(cal, 2001, 1, 1); 1317 dw_calendar_set_date(cal, 2019, 4, 30);
1318 */ 1318
1319 /* 1319 /*
1320 * Create our file toolbar boxes... 1320 * Create our file toolbar boxes...
1321 */ 1321 */
1322 buttonboxperm = dw_box_new( DW_VERT, 0 ); 1322 buttonboxperm = dw_box_new( DW_VERT, 0 );
1323 dw_box_pack_start( buttonsbox, buttonboxperm, 25, 0, FALSE, TRUE, 2 ); 1323 dw_box_pack_start( buttonsbox, buttonboxperm, 25, 0, FALSE, TRUE, 2 );