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

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

index efa36f8..cf25421 100644 (file)
          "listeners" : {
           "clicked" : "  ( ) => {\n  \n    _this.windowstate.switchState(WindowState.State.PREVIEW);\n    \n\n}"
          },
+         "id" : "openbackbtn",
          "utf8 tooltip_text" : "Back",
          "xtype" : "Button",
          "* pack" : false,
index 8a857dd..2e546f9 100644 (file)
@@ -15,6 +15,7 @@ public class Xcls_MainWindow : Object
     public Xcls_headerbar headerbar;
     public Xcls_topbarmenu topbarmenu;
     public Xcls_openbtn openbtn;
+    public Xcls_openbackbtn openbackbtn;
     public Xcls_vbox vbox;
     public Xcls_mainpane mainpane;
     public Xcls_leftpane leftpane;
@@ -221,7 +222,7 @@ public class Xcls_MainWindow : Object
             this.el.add (  child_0.el  );
             var child_1 = new Xcls_openbtn( _this );
             child_1.ref();
-            var child_2 = new Xcls_Button13( _this );
+            var child_2 = new Xcls_openbackbtn( _this );
             child_2.ref();
         }
 
@@ -484,7 +485,7 @@ public class Xcls_MainWindow : Object
     }
 
 
-    public class Xcls_Button13 : Object
+    public class Xcls_openbackbtn : Object
     {
         public Gtk.Button el;
         private Xcls_MainWindow  _this;
@@ -493,9 +494,10 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Button13(Xcls_MainWindow _owner )
+        public Xcls_openbackbtn(Xcls_MainWindow _owner )
         {
             _this = _owner;
+            _this.openbackbtn = this;
             this.el = new Gtk.Button();
 
             // my vars (dec)