#include <gtk/gtk.h>
int main(int argc, char *argv[]) {
GtkWidget* window;
GtkWidget* fixed;
GtkWidget* button1;
GtkWidget* button2;
//设置主窗体
gtk_init(&argc, &argv);
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window[......]
#include <gtk/gtk.h>
int main(int argc, char *argv[]) {
GtkWidget* window;
GtkWidget* fixed;
GtkWidget* button1;
GtkWidget* button2;
//设置主窗体
gtk_init(&argc, &argv);
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window[......]
[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[......]