X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=tests%2Ftest1.vala;h=d897b2286a217b801b0de39593d9bd288e373568;hb=f10e0933c16d3bea5bdd2bde43c8b149a2312b30;hp=c0c080792e9f2ed519f955e2be853614999ffcac;hpb=5601e174e8874d0b719dc40e4213c47d2cebea7c;p=app.Builder.js diff --git a/tests/test1.vala b/tests/test1.vala index c0c080792..d897b2286 100644 --- a/tests/test1.vala +++ b/tests/test1.vala @@ -9,14 +9,20 @@ static int main (string[] args) { Gtk.init (ref args); + + // must init modules... new Xcls_EditorWindow(); - EditorWindow.showAll(); + + + + EditorWindow.show_all(); Gtk.main (); return 0; } + public static Xcls_EditorWindow EditorWindow; @@ -33,26 +39,28 @@ public class Xcls_EditorWindow : Gtk.Window this.width_request = 500; this.add ( new Xcls_VBox2() ); } -} -public class Xcls_VBox2 : Gtk.VBox -{ - public Xcls_VBox2() + public class Xcls_VBox2 : Gtk.VBox { - this.pack_start ( new Xcls_Toolbar3(), false,true ); + public Xcls_VBox2() + { + this.pack_start ( new Xcls_Toolbar3(), false,true ); + } } -} -public class Xcls_Toolbar3 : Gtk.Toolbar -{ - public Xcls_Toolbar3() + public class Xcls_Toolbar3 : Gtk.Toolbar { - this.add ( new Xcls_save_button() ); + public Xcls_Toolbar3() + { + this.add ( new Xcls_save_button() ); + } } -} -public class Xcls_save_button : Gtk.Button -{ - public Xcls_save_button() + public class Xcls_save_button : Gtk.ToolButton { - EditorWindow.save_button = this; - this.label = "Save"; + public Xcls_save_button() + { + _this.save_button = this; + this.label = "Save"; + } } } + +