
/*
#! /usr/bin/env python
import pygtk
pygtk.require("2.0")
import gtk
import gdl
import vte

win = gtk.Window(gtk.WINDOW_TOPLEVEL)
dock = gdl.Dock()

for i in range(2):
    item = gdl.DockItem(str(i), str(i), gtk.STOCK_EXECUTE, gdl.DOCK_ITEM_BEH_NORMAL)
    item.add( vte.Terminal() )
    dock.add_item(item, gdl.DOCK_CENTER)
win.add(dock)
win.show_all()
gtk.main()
*/

#include <gtk/gtk.h>
#include <vte/vte.h>
#include <gdl/gdl.h>

int main(int argc, char** argv)
{
	gtk_init(&argc, &argv);
	GtkWidget* window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
	GtkWidget* dock = gdl_dock_new();
	for( int i = 0; i < 2; ++i )
	{
		GtkWidget* item = gdl_dock_item_new("term", "term", GDL_DOCK_ITEM_BEH_NORMAL);
    	gtk_container_add( GTK_CONTAINER(item), vte_terminal_new() );
    	gdl_dock_add_item( GDL_DOCK(dock), GDL_DOCK_ITEM(item), GDL_DOCK_CENTER );
	}
	gtk_container_add(GTK_CONTAINER(window), dock);
	gtk_widget_show_all(window);
	gtk_main();
	return 0;
}
