#include <gtk/gtk.h>

int main (int argc, char **argv)
{
	GtkWidget *window, *headerbar, *box;

	gtk_init (&argc, &argv);

	window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
	gtk_widget_realize (window);
	box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
	headerbar = gtk_header_bar_new ();
	gtk_header_bar_set_show_close_button (GTK_HEADER_BAR (headerbar), TRUE);
	gtk_container_add (GTK_CONTAINER (box), headerbar);

	gtk_window_set_titlebar (GTK_WINDOW (window), box);

	gtk_widget_show_all (window);

	gtk_main ();

	return 0;
}
