From 135afdb38912b0350de8d827c8307e432fd25234 Mon Sep 17 00:00:00 2001 From: David King Date: Thu, 7 May 2015 09:41:04 +0700 Subject: 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. --- c-gnome-app.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 c-gnome-app.c (limited to 'c-gnome-app.c') 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 + +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; +} -- cgit