tests/test1.vala
authorAlan Knowles <alan@roojs.com>
Wed, 14 May 2014 14:51:05 +0000 (22:51 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 14 May 2014 14:51:05 +0000 (22:51 +0800)
tests/test1.vala

index 5e945c1..12df490 100644 (file)
@@ -5,10 +5,11 @@
 
 
 
-static int main (string[] args) {
+*/
 
+static int main (string[] args) {
     Gtk.init (ref args);
-   // new Xcls_EditorWindow();
+    new Xcls_EditorWindow();
     EditorWindow.show_all();
      Gtk.main ();
 
@@ -16,15 +17,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;