src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Sun, 25 Sep 2022 03:22:42 +0000 (11:22 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 25 Sep 2022 03:22:42 +0000 (11:22 +0800)
src/Builder4/MainWindow.vala

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

index 0001b1d..a990b74 100644 (file)
            "items" : [
             {
              "$ xns" : "Gtk",
-             "* pack" : "set_image",
-             "utf8 icon_name" : "media-playback-start",
-             "xtype" : "Image"
+             "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
+             "int spacing" : 0,
+             "items" : [
+              {
+               "$ xns" : "Gtk",
+               "utf8 icon_name" : "media-playback-start",
+               "xtype" : "Image"
+              },
+              {
+               "$ xns" : "Gtk",
+               "string label" : "Run",
+               "xtype" : "Label"
+              }
+             ],
+             "xtype" : "Box"
             }
            ],
            "listeners" : {
index dc4ee61..0a1398a 100644 (file)
@@ -1520,9 +1520,9 @@ public class Xcls_MainWindow : Object
 
             // set gobject values
             this.el.label = "Run";
-            var child_0 = new Xcls_Image47( _this );
+            var child_0 = new Xcls_Box47( _this );
             child_0.ref();
-            this.el.set_image (  child_0.el  );
+            this.el.add(  child_0.el );
             this.el.show();
 
             //listeners
@@ -1540,7 +1540,34 @@ public class Xcls_MainWindow : Object
 
         // user defined functions
     }
-    public class Xcls_Image47 : Object
+    public class Xcls_Box47 : Object
+    {
+        public Gtk.Box el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+
+        // ctor
+        public Xcls_Box47(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.Box( Gtk.Orientation.HORIZONTAL, 0 );
+
+            // my vars (dec)
+
+            // set gobject values
+            var child_0 = new Xcls_Image48( _this );
+            child_0.ref();
+            this.el.add(  child_0.el );
+            var child_1 = new Xcls_Label49( _this );
+            child_1.ref();
+            this.el.add(  child_1.el );
+        }
+
+        // user defined functions
+    }
+    public class Xcls_Image48 : Object
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -1549,7 +1576,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor
-        public Xcls_Image47(Xcls_MainWindow _owner )
+        public Xcls_Image48(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();
@@ -1563,6 +1590,29 @@ public class Xcls_MainWindow : Object
         // user defined functions
     }
 
+    public class Xcls_Label49 : Object
+    {
+        public Gtk.Label el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+
+        // ctor
+        public Xcls_Label49(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.Label( "Run" );
+
+            // my vars (dec)
+
+            // set gobject values
+        }
+
+        // user defined functions
+    }
+
+
 
 
     public class Xcls_statusbar_compile_spinner : Object