X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=tests%2Ftest1.vala;h=d897b2286a217b801b0de39593d9bd288e373568;hb=495105c4426d63ccc295b0b9b88afcd1077d7a39;hp=999a88bd51a65ebf91aa477bdeb2a61335a7ffd8;hpb=4eb840b02708e8044eb76e15122f9d376254f7ec;p=app.Builder.js diff --git a/tests/test1.vala b/tests/test1.vala index 999a88bd5..d897b2286 100644 --- a/tests/test1.vala +++ b/tests/test1.vala @@ -7,8 +7,14 @@ */ +static int main (string[] args) { Gtk.init (ref args); - // new Xcls_EditorWindow(); + + // must init modules... + new Xcls_EditorWindow(); + + + EditorWindow.show_all(); Gtk.main (); @@ -17,16 +23,17 @@ -//public static Xcls_EditorWindow EditorWindow = new Xcls_EditorWindow (); +public static Xcls_EditorWindow EditorWindow; -static public class EditorWindow : Gtk.Window +public class Xcls_EditorWindow : Gtk.Window { - public static EditorWindow _this; + public static Xcls_EditorWindow _this; public Xcls_save_button save_button; public Xcls_EditorWindow() { _this = this; + EditorWindow = this; this.height_request = 300; this.title = "Application Builder - Editor"; this.width_request = 500;