Support GtkBuilder templates
Once gnome-class is really working, we may want to support easily generating code that is bound to GtkBuilder templates. Vala allows this.
[GtkTemplate (ui = "/org/foo/my/mywidget.ui")]
public class MyWidget : Box {
[GtkChild]
private Entry entry;
[GtkCallback]
private void button_clicked (Button button) {
print ("The button was clicked with entry text: %s\n", entry.text);
}
}