Kjow wrote: > window := gtk_window_new (GTK_WINDOW_TOPLEVEL); ------> it returns > PGtkWidget, not PGtkWindow > All gtk_something_new() return PGtkWidget. Just typecast it: PGtkWindow(gtk_window_new()) Best regards, Paul Ishenin.