X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=tests%2Ftest1.vala;h=d897b2286a217b801b0de39593d9bd288e373568;hb=df1bc552d9ddc36cd32e7408ea1bd4082f08a5fd;hp=5e945c1ba3b42d2591054135b92d858340d9bad3;hpb=e0fd0c78501c0a5f8a7e763d949fa99bfe9eb5b5;p=app.Builder.js diff --git a/tests/test1.vala b/tests/test1.vala index 5e945c1ba..d897b2286 100644 --- a/tests/test1.vala +++ b/tests/test1.vala @@ -5,10 +5,16 @@ -static int main (string[] args) { +*/ +static int main (string[] args) { Gtk.init (ref args); - // new Xcls_EditorWindow(); + + // must init modules... + new Xcls_EditorWindow(); + + + EditorWindow.show_all(); Gtk.main (); @@ -16,15 +22,18 @@ static int main (string[] args) { } -*/ - -static class EditorWindow : Gtk.Window + +public static Xcls_EditorWindow EditorWindow; + + +public class Xcls_EditorWindow : Gtk.Window { - public static EditorWindow _this; + public static Xcls_EditorWindow _this; public Xcls_save_button save_button; - public EditorWindow() + public Xcls_EditorWindow() { _this = this; + EditorWindow = this; this.height_request = 300; this.title = "Application Builder - Editor"; this.width_request = 500;