Ekaterina Gerasimova
kittykat3756@gmail.com 2013
Gordon Hill
caseyweederman@gmail.com 2013
Add the window specified in the UI file to the application using GtkBuilder.
Mario Blättermann
mario.blaettermann@gmail.com 2009-2012
Christian Kirbach
christian.kirbach@gmail.com 2011, 2012.
Aljosha Papsch
al@rpapsch.de 2012

# GtkBuilder

# Erste Schritte mit GNOME

GtkBuilder accepts UI descriptions and turns them into Gtk applications. In this case, the UI description is in the file helloworld.glade and can be read by the `get_object()` method.

Load the UI file using `GtkBuilder` and get the window object using the Name (or ID) chosen in Glade, and add the window object to the application:

_onStartup: function() { let builder = new Gtk.Builder(); builder.add_from_file('helloworld.glade'); this._window = builder.get_object('window1'); this.application.add_window(this._window); } });