#include <gtk/gtk.h>
int main(int argc, char *argv[]) {
GtkWidget* window;
GtkWidget* vbox;
GtkWidget* button1;
GtkWidget* button2;
GtkWidget* button3;
GtkWidget* button4;
//设置主窗体
gtk_init(&argc, &argv);
window = gtk_win[......]
#include <gtk/gtk.h>
int main(int argc, char *argv[]) {
GtkWidget* window;
GtkWidget* vbox;
GtkWidget* button1;
GtkWidget* button2;
GtkWidget* button3;
GtkWidget* button4;
//设置主窗体
gtk_init(&argc, &argv);
window = gtk_win[......]
[cpp]
/*
* main2.cc
*
* Created on: 2010-2-5
* Description:
* Copyright: 2010 @ ICT Li Heyuan
*/
#include <gtk/gtk.h>
typedef struct {
GtkWidget *user, *pass;
} pointer;
void closeApp(GtkWidget *window, gpointer data) {
gtk_mai[......]