Linux GTK Hello,World

 1 #include <gtk/gtk.h>
 2 
 3 int main(int argc, char **argv)
 4 {
 5     GtkWidget *window;
 6     gtk_init(&argc, &argv);
 7     window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
 8     gtk_window_set_title(GTK_WINDOW(window),"Hello,World");
 9     gtk_widget_show(window);
10     gtk_main();
11     
12     return 0;
13 }

 

posted @ 2014-05-25 17:32  永久指针  阅读(266)  评论(0编辑  收藏  举报