Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 23 Sep 2014 12:16:40 +0000 (20:16 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 23 Sep 2014 12:16:40 +0000 (20:16 +0800)
Builder4/MainWindow.vala

Builder4/MainWindow.bjs
Builder4/MainWindow.vala

index d02d1f8..fbe5b4b 100644 (file)
                                                                             "width_request" : 50,
                                                                             "$ label" : "\"Add\\nFile\"",
                                                                             "$ xns" : "Gtk",
-                                                                            "height_request" : 50
+                                                                            "height_request" : 50,
+                                                                            "items" : [
+                                                                                {
+                                                                                    "xtype" : "Image",
+                                                                                    "utf8 icon_name" : "document-new",
+                                                                                    "* pack" : "set_image",
+                                                                                    "$ xns" : "Gtk"
+                                                                                }
+                                                                            ]
                                                                         }
                                                                     ]
                                                                 }
index 9be7fc6..7c7dc55 100644 (file)
@@ -2616,6 +2616,9 @@ public class Xcls_MainWindow : Object
             this.el.width_request = 50;
             this.el.height_request = 50;
             this.el.label = "Add\nFile";
+            var child_0 = new Xcls_Image51( _this );
+            child_0.ref();
+            this.el.set_image (  child_0.el  );
 
             // listeners 
             this.el.clicked.connect( () => {
@@ -2640,6 +2643,28 @@ public class Xcls_MainWindow : Object
 
         // user defined functions 
     }
+    public class Xcls_Image51 : Object 
+    {
+        public Gtk.Image el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+
+        // ctor 
+        public Xcls_Image51(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.Image();
+
+            // my vars (dec)
+
+            // set gobject values
+            this.el.icon_name = "document-new";
+        }
+
+        // user defined functions 
+    }
     public class Xcls_delprojectbutton : Object 
     {
         public Clutter.Actor el;
@@ -2658,7 +2683,7 @@ public class Xcls_MainWindow : Object
             // my vars (dec)
 
             // set gobject values
-            var child_0 = new Xcls_Actor52( _this );
+            var child_0 = new Xcls_Actor53( _this );
             child_0.ref();
             this.el.add_child (  child_0.el  );
 
@@ -2668,7 +2693,7 @@ public class Xcls_MainWindow : Object
 
         // user defined functions 
     }
-    public class Xcls_Actor52 : Object 
+    public class Xcls_Actor53 : Object 
     {
         public GtkClutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -2677,7 +2702,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Actor52(Xcls_MainWindow _owner )
+        public Xcls_Actor53(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new GtkClutter.Actor();
@@ -2685,7 +2710,7 @@ public class Xcls_MainWindow : Object
             // my vars (dec)
 
             // set gobject values
-            var child_0 = new Xcls_Button53( _this );
+            var child_0 = new Xcls_Button54( _this );
             child_0.ref();
 
             // init method 
@@ -2694,7 +2719,7 @@ public class Xcls_MainWindow : Object
 
         // user defined functions 
     }
-    public class Xcls_Button53 : Object 
+    public class Xcls_Button54 : Object 
     {
         public Gtk.Button el;
         private Xcls_MainWindow  _this;
@@ -2703,7 +2728,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Button53(Xcls_MainWindow _owner )
+        public Xcls_Button54(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Button();
@@ -2766,7 +2791,7 @@ public class Xcls_MainWindow : Object
             // my vars (dec)
 
             // set gobject values
-            var child_0 = new Xcls_Actor55( _this );
+            var child_0 = new Xcls_Actor56( _this );
             child_0.ref();
             this.el.add_child (  child_0.el  );
 
@@ -2776,7 +2801,7 @@ public class Xcls_MainWindow : Object
 
         // user defined functions 
     }
-    public class Xcls_Actor55 : Object 
+    public class Xcls_Actor56 : Object 
     {
         public GtkClutter.Actor el;
         private Xcls_MainWindow  _this;
@@ -2785,7 +2810,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Actor55(Xcls_MainWindow _owner )
+        public Xcls_Actor56(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new GtkClutter.Actor();
@@ -2793,7 +2818,7 @@ public class Xcls_MainWindow : Object
             // my vars (dec)
 
             // set gobject values
-            var child_0 = new Xcls_Button56( _this );
+            var child_0 = new Xcls_Button57( _this );
             child_0.ref();
 
             // init method 
@@ -2802,7 +2827,7 @@ public class Xcls_MainWindow : Object
 
         // user defined functions 
     }
-    public class Xcls_Button56 : Object 
+    public class Xcls_Button57 : Object 
     {
         public Gtk.Button el;
         private Xcls_MainWindow  _this;
@@ -2811,7 +2836,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Button56(Xcls_MainWindow _owner )
+        public Xcls_Button57(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Button();
@@ -2822,7 +2847,7 @@ public class Xcls_MainWindow : Object
             this.el.width_request = 50;
             this.el.height_request = 50;
             this.el.tooltip_text = "Open New Window";
-            var child_0 = new Xcls_Image57( _this );
+            var child_0 = new Xcls_Image58( _this );
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
@@ -2840,7 +2865,7 @@ public class Xcls_MainWindow : Object
 
         // user defined functions 
     }
-    public class Xcls_Image57 : Object 
+    public class Xcls_Image58 : Object 
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -2849,7 +2874,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Image57(Xcls_MainWindow _owner )
+        public Xcls_Image58(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();