]> git.draconx.ca Git - gob-dx.git/blobdiff - examples/my-glade-main.c
Release 2.0.12
[gob-dx.git] / examples / my-glade-main.c
diff --git a/examples/my-glade-main.c b/examples/my-glade-main.c
new file mode 100644 (file)
index 0000000..8e71f05
--- /dev/null
@@ -0,0 +1,51 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
+/*
+ * main.c
+ * Copyright (C) gandalfn 2005 <gandalfn@club-internet.fr>
+ * 
+ * main.c is free software.
+ * 
+ * You may redistribute it and/or modify it under the terms of the
+ * GNU General Public License, as published by the Free Software
+ * Foundation; either version 2, or (at your option) any later version.
+ * 
+ * main.c is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU General Public License for more details.
+ * 
+ * You should have received a copy of the GNU General Public License
+ * along with main.c.  See the file "COPYING".  If not,
+ * write to:  The Free Software Foundation, Inc.,
+ *            59 Temple Place - Suite 330,
+ *            Boston,  MA  02111-1307, USA.
+ */
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+#include <string.h>
+#include <stdio.h>
+
+#include <config.h>
+
+#include <gtk/gtk.h>
+#include "my-glade.h"
+
+
+int
+main (int argc, char *argv[])
+{
+       GtkWidget *window1;
+
+
+       
+       gtk_set_locale ();
+       gtk_init (&argc, &argv);
+
+       window1 = my_glade_new();
+       gtk_widget_show (window1);
+
+       gtk_main ();
+       return 0;
+}