src/Builder4/GladeView.bjs
authorAlan <alan@roojs.com>
Thu, 7 Jul 2022 04:47:21 +0000 (12:47 +0800)
committerAlan <alan@roojs.com>
Thu, 7 Jul 2022 04:47:21 +0000 (12:47 +0800)
src/Builder4/GladeView.vala

src/Builder4/GladeView.bjs
src/Builder4/GladeView.vala

index 3606719..de08c5d 100644 (file)
      "$ xns" : "Gtk",
      "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
      "int spacing" : 0,
+     "items" : [
+      {
+       "$ xns" : "Gtk",
+       "* prop" : "buttons[]",
+       "* response_id" : 1,
+       "string label" : "xxxx",
+       "xtype" : "Button"
+      }
+     ],
      "xtype" : "Box"
     }
    ],
index bfe9282..806662f 100644 (file)
@@ -127,9 +127,34 @@ public class GladeView : Object
             // my vars (dec)
 
             // set gobject values
+            var child_0 = new Xcls_Button6( _this );
+            this.el.add(  child_0.el );
         }
 
         // user defined functions
     }
+    public class Xcls_Button6 : Object
+    {
+        public Gtk.Button el;
+        private GladeView  _this;
+
+
+            // my vars (def)
+
+        // ctor
+        public Xcls_Button6(GladeView _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.Button();
+
+            // my vars (dec)
+
+            // set gobject values
+            this.el.label = "xxxx";
+        }
+
+        // user defined functions
+    }
+
 
 }