using GLib; using Gtk; using Glade; public class Test3 : Gtk.Object { Glade.XML xml; construct { xml = new Glade.XML("test2.glade", null, null); xml.signal_autoconnect(); } public void on_button1_clicked(Gtk.Widget widget) { stdout.printf("Clicked\n"); } public void on_window1_destroy(Gtk.Widget widget) { Gtk.main_quit(); } /* public void create_widgets () { destroy += Gtk.main_quit; var button = new Button.with_label ("Hello World"); button.clicked += btn => { title = btn.label; }; add (button); } */ static int main (string[] args) { Gtk.init (out args); var sample = new Test3 (); //sample.show_all (); Gtk.main (); return 0; } }