comparison dwtest.c @ 266:5c5bee286d0e

Fixed some warnings.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 28 Feb 2003 01:32:32 +0000
parents 9ea4ac9a097f
children bf8b907f8a29
comparison
equal deleted inserted replaced
265:84471d53ab58 266:5c5bee286d0e
63 63
64 if ( hwnd == textbox1 ) 64 if ( hwnd == textbox1 )
65 hpm = text1pm; 65 hpm = text1pm;
66 else if ( hwnd == textbox2 ) 66 else if ( hwnd == textbox2 )
67 hpm = text2pm; 67 hpm = text2pm;
68 else
69 return TRUE;
68 70
69 width = DW_PIXMAP_WIDTH(hpm); 71 width = DW_PIXMAP_WIDTH(hpm);
70 height = DW_PIXMAP_HEIGHT(hpm); 72 height = DW_PIXMAP_HEIGHT(hpm);
71 73
72 dw_pixmap_bitblt(hwnd, NULL, 0, 0, width, height, NULL, hpm, 0, 0 ); 74 dw_pixmap_bitblt(hwnd, NULL, 0, 0, width, height, NULL, hpm, 0, 0 );
129 { 131 {
130 dw_timer_disconnect( timerid ); 132 dw_timer_disconnect( timerid );
131 return TRUE; 133 return TRUE;
132 } 134 }
133 135
134 int DWSIGNAL keypress_callback(HWND window, void *data) 136 int DWSIGNAL keypress_callback(HWND window, char *text, void *data)
135 { 137 {
136 fprintf(stderr,"got keypress\n"); 138 fprintf(stderr,"got keypress\n");
137 return 0; 139 return 0;
138 } 140 }
139 141
140 int DWSIGNAL exit_callback(HWND window, void *data) 142 int DWSIGNAL exit_callback(HWND window, void *data)
141 { 143 {
330 } 332 }
331 333
332 void tree_add(void) 334 void tree_add(void)
333 { 335 {
334 HWND t1,t2,t3; 336 HWND t1,t2,t3;
335 int depth = dw_color_depth();
336 337
337 /* create a box to pack into the notebook page */ 338 /* create a box to pack into the notebook page */
338 treebox = dw_box_new(BOXHORZ, 2); 339 treebox = dw_box_new(BOXHORZ, 2);
339 dw_box_pack_start( notebookbox3, treebox, 500, 200, TRUE, TRUE, 0); 340 dw_box_pack_start( notebookbox3, treebox, 500, 200, TRUE, TRUE, 0);
340 341
341 /* now a tree area under this box */ 342 /* now a tree area under this box */
342 tree = dw_tree_new(0); 343 tree = dw_tree_new(0);
343 dw_box_pack_start( notebookbox3, tree, 500, 200, TRUE, FALSE, 1); 344 dw_box_pack_start( notebookbox3, tree, 500, 200, TRUE, FALSE, 1);
344 345
345 t1 = dw_tree_insert(tree, "tree item 1", NULL, NULL, NULL ); 346 t1 = dw_tree_insert(tree, "tree item 1", 0, NULL, NULL );
346 t2 = dw_tree_insert(tree, "tree item 2", NULL, NULL, NULL ); 347 t2 = dw_tree_insert(tree, "tree item 2", 0, NULL, NULL );
347 t3 = dw_tree_insert(tree, "tree item 3", NULL, t2, NULL ); 348 t3 = dw_tree_insert(tree, "tree item 3", 0, t2, NULL );
348 349
349 /* 350 /*
350 dw_signal_connect(textbox1, "expose_event", DW_SIGNAL_FUNC(text_expose), NULL); 351 dw_signal_connect(textbox1, "expose_event", DW_SIGNAL_FUNC(text_expose), NULL);
351 dw_signal_connect(textbox2, "expose_event", DW_SIGNAL_FUNC(text_expose), NULL); 352 dw_signal_connect(textbox2, "expose_event", DW_SIGNAL_FUNC(text_expose), NULL);
352 dw_signal_connect(textbox2, "configure_event", DW_SIGNAL_FUNC(configure_event), text2pm); 353 dw_signal_connect(textbox2, "configure_event", DW_SIGNAL_FUNC(configure_event), text2pm);