# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1046395952 0 # Node ID 5c5bee286d0e11f8f81847b2c752e20ef3adbb6e # Parent 84471d53ab58dfc6f6b5c0b91ee98053ece4f501 Fixed some warnings. diff -r 84471d53ab58 -r 5c5bee286d0e dwtest.c --- a/dwtest.c Thu Feb 27 06:09:06 2003 +0000 +++ b/dwtest.c Fri Feb 28 01:32:32 2003 +0000 @@ -65,6 +65,8 @@ hpm = text1pm; else if ( hwnd == textbox2 ) hpm = text2pm; + else + return TRUE; width = DW_PIXMAP_WIDTH(hpm); height = DW_PIXMAP_HEIGHT(hpm); @@ -131,9 +133,9 @@ return TRUE; } -int DWSIGNAL keypress_callback(HWND window, void *data) +int DWSIGNAL keypress_callback(HWND window, char *text, void *data) { -fprintf(stderr,"got keypress\n"); + fprintf(stderr,"got keypress\n"); return 0; } @@ -332,7 +334,6 @@ void tree_add(void) { HWND t1,t2,t3; - int depth = dw_color_depth(); /* create a box to pack into the notebook page */ treebox = dw_box_new(BOXHORZ, 2); @@ -342,9 +343,9 @@ tree = dw_tree_new(0); dw_box_pack_start( notebookbox3, tree, 500, 200, TRUE, FALSE, 1); -t1 = dw_tree_insert(tree, "tree item 1", NULL, NULL, NULL ); -t2 = dw_tree_insert(tree, "tree item 2", NULL, NULL, NULL ); -t3 = dw_tree_insert(tree, "tree item 3", NULL, t2, NULL ); + t1 = dw_tree_insert(tree, "tree item 1", 0, NULL, NULL ); + t2 = dw_tree_insert(tree, "tree item 2", 0, NULL, NULL ); + t3 = dw_tree_insert(tree, "tree item 3", 0, t2, NULL ); /* dw_signal_connect(textbox1, "expose_event", DW_SIGNAL_FUNC(text_expose), NULL);