X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=tests%2Ftest1.vala;h=d897b2286a217b801b0de39593d9bd288e373568;hb=db91cf4f4b993a8b4ed3ef5166cd15a0473f3caa;hp=4e75a10760ea4e6be85ebe9c53a21e52f0b912aa;hpb=c7a58df7b6fe411b1b0a01f732cfc0a2fff468c3;p=app.Builder.js diff --git a/tests/test1.vala b/tests/test1.vala index 4e75a1076..d897b2286 100644 --- a/tests/test1.vala +++ b/tests/test1.vala @@ -1,6 +1,6 @@ /* valac --pkg gio-2.0 --pkg posix --pkg gtk+-3.0 --pkg libnotify --pkg libwnck-3.0 \ - test1.vala + test1.vala \ -o /tmp/test1 @@ -9,21 +9,27 @@ 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; public class Xcls_EditorWindow : Gtk.Window { public static Xcls_EditorWindow _this; - public Xcls_save_button save_button; + public Xcls_save_button save_button; public Xcls_EditorWindow() { _this = this; @@ -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"; } } } + +