src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 16 Jul 2015 08:35:56 +0000 (16:35 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 16 Jul 2015 08:35:56 +0000 (16:35 +0800)
src/Builder4/MainWindow.vala

src/Builder4/MainWindow.bjs
src/Builder4/MainWindow.vala

index 032b866..efa36f8 100644 (file)
          "listeners" : {
           "clicked" : "  ( ) => {\n   _this.windowstate.switchState(WindowState.State.FILES);\n      \n\n}"
          },
+         "id" : "openbtn",
          "* pack" : false,
          "xtype" : "Button",
          "width_request" : 50,
index d5bcd23..8a857dd 100644 (file)
@@ -14,6 +14,7 @@ public class Xcls_MainWindow : Object
     }
     public Xcls_headerbar headerbar;
     public Xcls_topbarmenu topbarmenu;
+    public Xcls_openbtn openbtn;
     public Xcls_vbox vbox;
     public Xcls_mainpane mainpane;
     public Xcls_leftpane leftpane;
@@ -218,7 +219,7 @@ public class Xcls_MainWindow : Object
             var child_0 = new Xcls_MenuButton4( _this );
             child_0.ref();
             this.el.add (  child_0.el  );
-            var child_1 = new Xcls_Button11( _this );
+            var child_1 = new Xcls_openbtn( _this );
             child_1.ref();
             var child_2 = new Xcls_Button13( _this );
             child_2.ref();
@@ -425,7 +426,7 @@ public class Xcls_MainWindow : Object
     }
 
 
-    public class Xcls_Button11 : Object
+    public class Xcls_openbtn : Object
     {
         public Gtk.Button el;
         private Xcls_MainWindow  _this;
@@ -434,9 +435,10 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Button11(Xcls_MainWindow _owner )
+        public Xcls_openbtn(Xcls_MainWindow _owner )
         {
             _this = _owner;
+            _this.openbtn = this;
             this.el = new Gtk.Button();
 
             // my vars (dec)