"$ 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"
+ }
+ ]
}
]
}
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 );
}
// my vars (def)
- public string icon_name;
// ctor
public Xcls_ImageMenuItem69(Xcls_MainWindow _owner )
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();
// 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)
// 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