summaryrefslogtreecommitdiffstats
path: root/c-gnome-app.c
diff options
context:
space:
mode:
authorDavid King <amigadave@amigadave.com>2015-05-07 09:41:04 +0700
committerDavid King <amigadave@amigadave.com>2015-05-07 09:41:04 +0700
commit135afdb38912b0350de8d827c8307e432fd25234 (patch)
treee05ead4df0ddde9c14fed299f912752fbc3ba4a7 /c-gnome-app.c
downloadc-gnome-app-135afdb38912b0350de8d827c8307e432fd25234.tar.gz
c-gnome-app-135afdb38912b0350de8d827c8307e432fd25234.tar.xz
c-gnome-app-135afdb38912b0350de8d827c8307e432fd25234.zip
Add skeleton app, which shows an empty window
The application shows a window and runs forever. Closing the window does not stop the application, so it must be killed externally.
Diffstat (limited to 'c-gnome-app.c')
-rw-r--r--c-gnome-app.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/c-gnome-app.c b/c-gnome-app.c
new file mode 100644
index 0000000..f0d9998
--- /dev/null
+++ b/c-gnome-app.c
@@ -0,0 +1,17 @@
+/* Build with "gcc `pkg-config --cflags --libs gtk+-3.0` c-gnome-app.c */
+#include <gtk/gtk.h>
+
+int
+main (int argc,
+ char *argv[])
+{
+ GtkWidget *window;
+
+ gtk_init (&argc, &argv);
+ window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+ gtk_widget_show_all (window);
+
+ gtk_main ();
+
+ return 0;
+}