ttt_functional_test_util_idle_test_toggle_active, ttt_functional_test_util_default_timeout, &buttons[1][i]); } } int main(int argc, char **argv) { pthread_t thread; gtk_init(&argc, &argv); /* start the tictactoe application */ window = gtk_window_new(GTK_WINDOW_TOPLEVEL); ttt = tictactoe_new(); gtk_container_add(window, ttt); gtk_widget_show_all(window); /* start the Gtk+ dispatcher */ pthread_create(&thread, NULL, ttt_functional_test_gtk_main, NULL); /* launch test routines */ ttt_functional_test_dumb_player_b(); /* terminate the application */ gdk_threads_enter(); gtk_main_quit(); gdk_threads_leave(); return(0); } (题图:opensource.com)
推荐阅读
商业智能简史,一切要从1865年说起
1865年,理查德·米勒·德文斯(Richard Millar Devens)在《贸易妙闻百科全书》(Cyclopædiaof Commercial and Business Anecdotes)中提出了“贸易智能”(BI>>>详细阅读
本文标题:用C语言对Gtk+应用进行功能测试
地址:http://www.17bianji.com/lsqh/37870.html
1/2 1