diff options
author | mattn <mattn.jp@gmail.com> | 2012-05-24 23:29:52 +0900 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2012-05-24 23:29:52 +0900 |
commit | e9259c19a2e71f918d0b3021dd8d310ac7dae3b4 (patch) | |
tree | 88dcdf23498bfee8ab1beaa7e0953316e9cbc7d7 /template/c | |
parent | 459522d6b2e04763c5fdd2515c58d97513c78bdc (diff) | |
download | vim-sonictemplate-e9259c19a2e71f918d0b3021dd8d310ac7dae3b4.tar.gz vim-sonictemplate-e9259c19a2e71f918d0b3021dd8d310ac7dae3b4.tar.bz2 vim-sonictemplate-e9259c19a2e71f918d0b3021dd8d310ac7dae3b4.zip |
add base-main-gtk
Diffstat (limited to 'template/c')
-rw-r--r-- | template/c/base-main-gtk.c | 19 |
1 files changed, 19 insertions, 0 deletions
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 <gtk/gtk.h> + +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; +} |