src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Fri, 15 May 2015 09:14:14 +0000 (17:14 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 15 May 2015 09:14:14 +0000 (17:14 +0800)
src/Builder4/MainWindow.vala

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

index f7ac52f..6330b82 100644 (file)
            "* pack" : "add",
            "xtype" : "ImageMenuItem",
            "string icon_name" : "dialog-error",
-           "$ xns" : "Gtk"
+           "$ xns" : "Gtk",
+           "items" : [
+            {
+             "* pack" : "set_image",
+             "xtype" : "Image",
+             "utf8 icon_name" : "user-trash",
+             "$ xns" : "Gtk"
+            }
+           ]
           },
           {
            "xtype" : "ToolButton",
index 9ae56b6..9fe4a43 100644 (file)
@@ -2214,10 +2214,10 @@ public class Xcls_MainWindow : Object
             var child_0 = new Xcls_ImageMenuItem69( _this );
             child_0.ref();
             this.el.add (  child_0.el  );
-            var child_1 = new Xcls_ToolButton70( _this );
+            var child_1 = new Xcls_ToolButton71( _this );
             child_1.ref();
             this.el.add (  child_1.el  );
-            var child_2 = new Xcls_ToolButton71( _this );
+            var child_2 = new Xcls_ToolButton72( _this );
             child_2.ref();
             this.el.add (  child_2.el  );
         }
@@ -2244,11 +2244,36 @@ public class Xcls_MainWindow : Object
 
             // set gobject values
             this.el.label = "Errors";
+            var child_0 = new Xcls_Image70( _this );
+            child_0.ref();
+            this.el.set_image (  child_0.el  );
+        }
+
+        // user defined functions 
+    }
+    public class Xcls_Image70 : Object 
+    {
+        public Gtk.Image el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+
+        // ctor 
+        public Xcls_Image70(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.Image();
+
+            // my vars (dec)
+
+            // set gobject values
+            this.el.icon_name = "user-trash";
         }
 
         // user defined functions 
     }
-    public class Xcls_ToolButton70 : Object 
+    public class Xcls_ToolButton71 : Object 
     {
         public Gtk.ToolButton el;
         private Xcls_MainWindow  _this;
@@ -2257,7 +2282,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_ToolButton70(Xcls_MainWindow _owner )
+        public Xcls_ToolButton71(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.ToolButton( null, "Warnings" );
@@ -2270,7 +2295,7 @@ public class Xcls_MainWindow : Object
 
         // user defined functions 
     }
-    public class Xcls_ToolButton71 : Object 
+    public class Xcls_ToolButton72 : Object 
     {
         public Gtk.ToolButton el;
         private Xcls_MainWindow  _this;
@@ -2279,7 +2304,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_ToolButton71(Xcls_MainWindow _owner )
+        public Xcls_ToolButton72(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.ToolButton( null, "Depricated" );