Using Composite Templates in Vala I have fixed this code to compile with recent versions of Vala compiler. Links: Article Original source