aboutsummaryrefslogtreecommitdiff
path: root/template/c/base-main-gtk.c
blob: 6944e21ac0b0a446612a3f48378b64b60ac681bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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;
}