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

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

index 729e6dd..84f9e22 100644 (file)
           {
            "string label" : "Errors",
            "* pack" : "add",
-           "xtype" : "ToolButton",
+           "xtype" : "ImageMenuItem",
            "string icon_name" : "dialog-error",
            "$ xns" : "Gtk",
            "bool no_show_all" : false
index 4bedaba..77a5e9f 100644 (file)
@@ -2211,7 +2211,7 @@ public class Xcls_MainWindow : Object
             // my vars (dec)
 
             // set gobject values
-            var child_0 = new Xcls_ToolButton69( _this );
+            var child_0 = new Xcls_ImageMenuItem69( _this );
             child_0.ref();
             this.el.add (  child_0.el  );
             var child_1 = new Xcls_ToolButton70( _this );
@@ -2224,25 +2224,27 @@ public class Xcls_MainWindow : Object
 
         // user defined functions 
     }
-    public class Xcls_ToolButton69 : Object 
+    public class Xcls_ImageMenuItem69 : Object 
     {
-        public Gtk.ToolButton el;
+        public Gtk.ImageMenuItem el;
         private Xcls_MainWindow  _this;
 
 
             // my vars (def)
+        public string icon_name;
 
         // ctor 
-        public Xcls_ToolButton69(Xcls_MainWindow _owner )
+        public Xcls_ImageMenuItem69(Xcls_MainWindow _owner )
         {
             _this = _owner;
-            this.el = new Gtk.ToolButton( null, "Errors" );
+            this.el = new Gtk.ImageMenuItem();
 
             // my vars (dec)
+            this.icon_name = dialog-error;
 
             // set gobject values
-            this.el.icon_name = "dialog-error";
             this.el.no_show_all = false;
+            this.el.label = "Errors";
         }
 
         // user defined functions