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

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

index 3ab5086..ce46fbe 100644 (file)
          "$ xns" : "Gtk",
          "items" : [
           {
+           "bool always_show_image" : true,
            "string label" : "Errors",
            "* pack" : "add",
            "xtype" : "ImageMenuItem",
-           "string icon_name" : "dialog-error",
            "$ xns" : "Gtk",
            "items" : [
             {
            ]
           },
           {
-           "xtype" : "ToolButton",
-           "string label" : "Warnings",
+           "bool always_show_image" : true,
            "* pack" : "add",
-           "string icon_name" : "dialog-warning",
-           "$ xns" : "Gtk"
+           "string label" : "Warnings",
+           "xtype" : "ImageMenuItem",
+           "$ xns" : "Gtk",
+           "items" : [
+            {
+             "utf8 icon_name" : "dialog-warning",
+             "* pack" : "set_image",
+             "xtype" : "Image",
+             "$ xns" : "Gtk"
+            }
+           ]
           },
           {
+           "bool always_show_image" : true,
+           "string label" : "Errors",
            "* pack" : "add",
-           "xtype" : "ToolButton",
-           "string label" : "Depricated",
-           "string icon_name" : "dialog-information",
-           "$ xns" : "Gtk"
+           "xtype" : "ImageMenuItem",
+           "$ xns" : "Gtk",
+           "items" : [
+            {
+             "xtype" : "Image",
+             "utf8 icon_name" : "dialog-error",
+             "* pack" : "set_image",
+             "$ xns" : "Gtk"
+            }
+           ]
           }
          ]
         }
index 0e4bcf4..0946d89 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_ToolButton71( _this );
+            var child_1 = new Xcls_ImageMenuItem71( _this );
             child_1.ref();
             this.el.add (  child_1.el  );
-            var child_2 = new Xcls_ToolButton72( _this );
+            var child_2 = new Xcls_ImageMenuItem73( _this );
             child_2.ref();
             this.el.add (  child_2.el  );
         }
@@ -2231,7 +2231,6 @@ public class Xcls_MainWindow : Object
 
 
             // my vars (def)
-        public string icon_name;
 
         // ctor 
         public Xcls_ImageMenuItem69(Xcls_MainWindow _owner )
@@ -2240,9 +2239,9 @@ public class Xcls_MainWindow : Object
             this.el = new Gtk.ImageMenuItem();
 
             // my vars (dec)
-            this.icon_name = dialog-error;
 
             // set gobject values
+            this.el.always_show_image = true;
             this.el.label = "Errors";
             var child_0 = new Xcls_Image70( _this );
             child_0.ref();
@@ -2273,19 +2272,45 @@ public class Xcls_MainWindow : Object
 
         // user defined functions 
     }
-    public class Xcls_ToolButton71 : Object 
+    public class Xcls_ImageMenuItem71 : Object 
     {
-        public Gtk.ToolButton el;
+        public Gtk.ImageMenuItem el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+
+        // ctor 
+        public Xcls_ImageMenuItem71(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.ImageMenuItem();
+
+            // my vars (dec)
+
+            // set gobject values
+            this.el.always_show_image = true;
+            this.el.label = "Warnings";
+            var child_0 = new Xcls_Image72( _this );
+            child_0.ref();
+            this.el.set_image (  child_0.el  );
+        }
+
+        // user defined functions 
+    }
+    public class Xcls_Image72 : Object 
+    {
+        public Gtk.Image el;
         private Xcls_MainWindow  _this;
 
 
             // my vars (def)
 
         // ctor 
-        public Xcls_ToolButton71(Xcls_MainWindow _owner )
+        public Xcls_Image72(Xcls_MainWindow _owner )
         {
             _this = _owner;
-            this.el = new Gtk.ToolButton( null, "Warnings" );
+            this.el = new Gtk.Image();
 
             // my vars (dec)
 
@@ -2295,24 +2320,50 @@ public class Xcls_MainWindow : Object
 
         // user defined functions 
     }
-    public class Xcls_ToolButton72 : Object 
+    public class Xcls_ImageMenuItem73 : Object 
+    {
+        public Gtk.ImageMenuItem el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+
+        // ctor 
+        public Xcls_ImageMenuItem73(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.ImageMenuItem();
+
+            // my vars (dec)
+
+            // set gobject values
+            this.el.always_show_image = true;
+            this.el.label = "Errors";
+            var child_0 = new Xcls_Image74( _this );
+            child_0.ref();
+            this.el.set_image (  child_0.el  );
+        }
+
+        // user defined functions 
+    }
+    public class Xcls_Image74 : Object 
     {
-        public Gtk.ToolButton el;
+        public Gtk.Image el;
         private Xcls_MainWindow  _this;
 
 
             // my vars (def)
 
         // ctor 
-        public Xcls_ToolButton72(Xcls_MainWindow _owner )
+        public Xcls_Image74(Xcls_MainWindow _owner )
         {
             _this = _owner;
-            this.el = new Gtk.ToolButton( null, "Depricated" );
+            this.el = new Gtk.Image();
 
             // my vars (dec)
 
             // set gobject values
-            this.el.icon_name = "dialog-information";
+            this.el.icon_name = "dialog-error";
         }
 
         // user defined functions