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

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

index 1d2a33c..b9e4891 100644 (file)
          "xtype" : "Toolbar",
          "$ xns" : "Gtk",
          "Gtk.IconSize icon_size" : "Gtk.IconSize.SMALL_TOOLBAR",
+         "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
          "items" : [
           {
            "* pack" : "add",
            "xtype" : "ToolButton",
            "string label" : "Depricated",
            "* pack" : "add",
-           "$ xns" : "Gtk",
-           "items" : [
-            {
-             "xtype" : "Image",
-             "utf8 icon_name" : "dialog-information",
-             "* pack" : "set_image",
-             "$ xns" : "Gtk"
-            }
-           ]
+           "string icon_name" : "dialog-information",
+           "$ xns" : "Gtk"
           }
          ]
         }
index a8015f7..78583ce 100644 (file)
@@ -2211,6 +2211,7 @@ public class Xcls_MainWindow : Object
             // my vars (dec)
 
             // set gobject values
+            this.el.orientation = Gtk.Orientation.HORIZONTAL;
             this.el.icon_size = Gtk.IconSize.SMALL_TOOLBAR;
             this.el.toolbar_style = Gtk.ToolbarStyle.BOTH_HORIZ;
             var child_0 = new Xcls_ToolButton69( _this );
@@ -2286,30 +2287,6 @@ public class Xcls_MainWindow : Object
 
             // 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-information";
         }