JAVA
·
发表于 5年以前
·
阅读量:900
#include <gtk/gtk.h>
int main(int argc, char * args[])
{
GtkWidget * win, * label;
gtk_init(& argc, & args);
label = gtk_label_new("Hello, world!");
win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_container_add(GTK_CONTAINER(win), label);
gtk_widget_show_all();
gtk_main();
return 0;
}