comparison dwtest.c @ 991:64c4c40c5835

Added some MLE tests to dwtest program to make sure MLEs function the same across platforms.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 07 May 2011 19:12:58 +0000
parents 5320a168cc0d
children 2d80b4dcff9a
comparison
equal deleted inserted replaced
990:3d898b78c2ad 991:64c4c40c5835
1024 dw_container_optimize(container); 1024 dw_container_optimize(container);
1025 1025
1026 container_mle = dw_mle_new( 111 ); 1026 container_mle = dw_mle_new( 111 );
1027 dw_box_pack_start( containerbox, container_mle, 500, 200, TRUE, TRUE, 0); 1027 dw_box_pack_start( containerbox, container_mle, 500, 200, TRUE, TRUE, 0);
1028 1028
1029 /* connect our event trappers... */ 1029 mle_point = dw_mle_import(container_mle, "", -1);
1030 sprintf(buffer, "[%d]", mle_point);
1031 mle_point = dw_mle_import(container_mle, buffer, mle_point);
1032 sprintf(buffer, "[%d]abczxydefijkl", mle_point);
1033 mle_point = dw_mle_import(container_mle, buffer, mle_point);
1034 dw_mle_delete(container_mle, 11, 3);
1035 mle_point = dw_mle_import(container_mle, "gh", 14);
1036 dw_mle_get_size(container_mle, (unsigned long*)&mle_point, NULL);
1037 mle_point = dw_mle_import(container_mle, "\r\n\r\n", mle_point);
1038 dw_mle_set_cursor(container_mle, mle_point);
1039 /* connect our event trappers... */
1030 dw_signal_connect(container, DW_SIGNAL_ITEM_ENTER, DW_SIGNAL_FUNC(item_enter_cb), (void *)container_status); 1040 dw_signal_connect(container, DW_SIGNAL_ITEM_ENTER, DW_SIGNAL_FUNC(item_enter_cb), (void *)container_status);
1031 dw_signal_connect(container, DW_SIGNAL_ITEM_CONTEXT, DW_SIGNAL_FUNC(item_context_cb), (void *)container_status); 1041 dw_signal_connect(container, DW_SIGNAL_ITEM_CONTEXT, DW_SIGNAL_FUNC(item_context_cb), (void *)container_status);
1032 dw_signal_connect(container, DW_SIGNAL_ITEM_SELECT, DW_SIGNAL_FUNC(container_select_cb), (void *)container_status); 1042 dw_signal_connect(container, DW_SIGNAL_ITEM_SELECT, DW_SIGNAL_FUNC(container_select_cb), (void *)container_status);
1033 dw_signal_connect(container, DW_SIGNAL_COLUMN_CLICK, DW_SIGNAL_FUNC(column_click_cb), (void *)container_status); 1043 dw_signal_connect(container, DW_SIGNAL_COLUMN_CLICK, DW_SIGNAL_FUNC(column_click_cb), (void *)container_status);
1034 } 1044 }