X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=tests%2Ftest1.vala;h=d897b2286a217b801b0de39593d9bd288e373568;hb=db91cf4f4b993a8b4ed3ef5166cd15a0473f3caa;hp=a5d419cbaf5932e4f734ce90b88731d7268e6c5c;hpb=632a5190ea08a4881010fb41bc73ad5e91ab5d9b;p=app.Builder.js diff --git a/tests/test1.vala b/tests/test1.vala index a5d419cba..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; @@ -39,20 +45,22 @@ public class Xcls_EditorWindow : Gtk.Window { this.pack_start ( new Xcls_Toolbar3(), false,true ); } - public class Xcls_Toolbar3 : Gtk.Toolbar + } + public class Xcls_Toolbar3 : Gtk.Toolbar + { + public Xcls_Toolbar3() { - public Xcls_Toolbar3() - { - this.add ( new Xcls_save_button() ); - } - public class Xcls_save_button : Gtk.Button - { - public Xcls_save_button() - { - _this.save_button = this; - this.label = "Save"; - } - } + this.add ( new Xcls_save_button() ); + } + } + public class Xcls_save_button : Gtk.ToolButton + { + public Xcls_save_button() + { + _this.save_button = this; + this.label = "Save"; } } } + +