From e9259c19a2e71f918d0b3021dd8d310ac7dae3b4 Mon Sep 17 00:00:00 2001 From: mattn Date: Thu, 24 May 2012 23:29:52 +0900 Subject: add base-main-gtk --- template/c/base-main-gtk.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 template/c/base-main-gtk.c (limited to 'template') diff --git a/template/c/base-main-gtk.c b/template/c/base-main-gtk.c new file mode 100644 index 0000000..6944e21 --- /dev/null +++ b/template/c/base-main-gtk.c @@ -0,0 +1,19 @@ +#include + +int +main(int argc, char* argv[]) { + GtkWidget* window; + + gtk_init(&argc, &argv); + + window = gtk_window_new(GTK_WINDOW_TOPLEVEL); + gtk_window_set_title(GTK_WINDOW(window), "helloworld"); + g_signal_connect(G_OBJECT(window), "delete-event", gtk_main_quit, window); + + {{_cursor_}} + + gtk_widget_show_all(window); + + gtk_main(); + return 0; +} -- cgit v1.2.3-54-g00ecf