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

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

index 009889c..d1a7702 100644 (file)
              "$ xns" : "Gtk"
             }
            ]
+          },
+          {
+           "string label" : "Warnings",
+           "* pack" : "add",
+           "xtype" : "ToolButton",
+           "$ xns" : "Gtk",
+           "items" : [
+            {
+             "utf8 icon_name" : "dialog-warning",
+             "* pack" : "set_image",
+             "xtype" : "Image",
+             "$ xns" : "Gtk"
+            }
+           ]
           }
          ]
         },
index b14fb2b..1127eeb 100644 (file)
@@ -2147,13 +2147,13 @@ public class Xcls_MainWindow : Object
             var child_1 = new Xcls_Toolbar68( _this );
             child_1.ref();
             this.el.pack_end (  child_1.el , false,false,0 );
-            var child_2 = new Xcls_Button71( _this );
+            var child_2 = new Xcls_Button73( _this );
             child_2.ref();
             this.el.pack_end (  child_2.el , false,false,0 );
-            var child_3 = new Xcls_Button73( _this );
+            var child_3 = new Xcls_Button75( _this );
             child_3.ref();
             this.el.pack_end (  child_3.el , false,false,0 );
-            var child_4 = new Xcls_Button75( _this );
+            var child_4 = new Xcls_Button77( _this );
             child_4.ref();
             this.el.pack_end (  child_4.el , false,false,0 );
         }
@@ -2225,6 +2225,9 @@ public class Xcls_MainWindow : Object
             var child_0 = new Xcls_ToolButton69( _this );
             child_0.ref();
             this.el.add (  child_0.el  );
+            var child_1 = new Xcls_ToolButton71( _this );
+            child_1.ref();
+            this.el.add (  child_1.el  );
         }
 
         // user defined functions 
@@ -2275,7 +2278,53 @@ public class Xcls_MainWindow : Object
 
         // user defined functions 
     }
-    public class Xcls_Button71 : Object 
+    public class Xcls_ToolButton71 : Object 
+    {
+        public Gtk.ToolButton el;
+        private Xcls_MainWindow  _this;
+
+
+            // my vars (def)
+
+        // ctor 
+        public Xcls_ToolButton71(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.ToolButton( null, "Warnings" );
+
+            // my vars (dec)
+
+            // set gobject values
+            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_Image72(Xcls_MainWindow _owner )
+        {
+            _this = _owner;
+            this.el = new Gtk.Image();
+
+            // my vars (dec)
+
+            // set gobject values
+            this.el.icon_name = "dialog-warning";
+        }
+
+        // user defined functions 
+    }
+    public class Xcls_Button73 : Object 
     {
         public Gtk.Button el;
         private Xcls_MainWindow  _this;
@@ -2284,7 +2333,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Button71(Xcls_MainWindow _owner )
+        public Xcls_Button73(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Button();
@@ -2295,7 +2344,7 @@ public class Xcls_MainWindow : Object
             this.el.always_show_image = true;
             this.el.label = "Errors";
             this.el.image_position = Gtk.PositionType.LEFT;
-            var child_0 = new Xcls_Image72( _this );
+            var child_0 = new Xcls_Image74( _this );
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
@@ -2309,7 +2358,7 @@ public class Xcls_MainWindow : Object
 
         // user defined functions 
     }
-    public class Xcls_Image72 : Object 
+    public class Xcls_Image74 : Object 
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -2318,7 +2367,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Image72(Xcls_MainWindow _owner )
+        public Xcls_Image74(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();
@@ -2332,7 +2381,7 @@ public class Xcls_MainWindow : Object
 
         // user defined functions 
     }
-    public class Xcls_Button73 : Object 
+    public class Xcls_Button75 : Object 
     {
         public Gtk.Button el;
         private Xcls_MainWindow  _this;
@@ -2341,7 +2390,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Button73(Xcls_MainWindow _owner )
+        public Xcls_Button75(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Button();
@@ -2352,7 +2401,7 @@ public class Xcls_MainWindow : Object
             this.el.always_show_image = true;
             this.el.label = "Warnings";
             this.el.image_position = Gtk.PositionType.LEFT;
-            var child_0 = new Xcls_Image74( _this );
+            var child_0 = new Xcls_Image76( _this );
             child_0.ref();
             this.el.set_image (  child_0.el  );
 
@@ -2366,7 +2415,7 @@ public class Xcls_MainWindow : Object
 
         // user defined functions 
     }
-    public class Xcls_Image74 : Object 
+    public class Xcls_Image76 : Object 
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -2375,7 +2424,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Image74(Xcls_MainWindow _owner )
+        public Xcls_Image76(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();
@@ -2389,7 +2438,7 @@ public class Xcls_MainWindow : Object
 
         // user defined functions 
     }
-    public class Xcls_Button75 : Object 
+    public class Xcls_Button77 : Object 
     {
         public Gtk.Button el;
         private Xcls_MainWindow  _this;
@@ -2398,7 +2447,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Button75(Xcls_MainWindow _owner )
+        public Xcls_Button77(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Button();
@@ -2409,7 +2458,7 @@ public class Xcls_MainWindow : Object
             this.el.always_show_image = true;
             this.el.label = "Depricated";
             this.el.image_position = Gtk.PositionType.LEFT;
-            var child_0 = new Xcls_Image76( _this );
+            var child_0 = new Xcls_Image78( _this );
             child_0.ref();
 
             // listeners 
@@ -2422,7 +2471,7 @@ public class Xcls_MainWindow : Object
 
         // user defined functions 
     }
-    public class Xcls_Image76 : Object 
+    public class Xcls_Image78 : Object 
     {
         public Gtk.Image el;
         private Xcls_MainWindow  _this;
@@ -2431,7 +2480,7 @@ public class Xcls_MainWindow : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_Image76(Xcls_MainWindow _owner )
+        public Xcls_Image78(Xcls_MainWindow _owner )
         {
             _this = _owner;
             this.el = new Gtk.Image();