"$ type" : "Gtk.WindowType.TOPLEVEL",
"| void setTitle" : " (string str) {\n this.el.set_title(this.title + \" - \" + str);\n}\n",
"items" : [
+ {
+ "xtype" : "HeaderBar",
+ "* pack" : "set_titlebar",
+ "bool show_close_button" : true,
+ "$ xns" : "Gtk",
+ "string title" : "Application Builder"
+ },
{
"id" : "vbox",
"* pack" : "add",
"$ xns" : "Gtk",
"$ homogeneous" : false,
"items" : [
- {
- "* init" : "{\n // _this.el.set_titlebar(this.el);\n}\n",
- "* pack" : "pack_start,false,true,0",
- "xtype" : "HeaderBar",
- "bool show_close_button" : true,
- "$ xns" : "Gtk",
- "string title" : "Application Builder"
- },
{
"id" : "mainpane",
"position" : 400,
this.el.border_width = 0;
this.el.default_height = 500;
this.el.default_width = 800;
- var child_0 = new Xcls_vbox( _this );
+ var child_0 = new Xcls_HeaderBar2( _this );
child_0.ref();
- this.el.add ( child_0.el );
+ this.el.set_titlebar ( child_0.el );
+ var child_1 = new Xcls_vbox( _this );
+ child_1.ref();
+ this.el.add ( child_1.el );
// init method
public void setTitle (string str) {
this.el.set_title(this.title + " - " + str);
}
- public class Xcls_vbox : Object
+ public class Xcls_HeaderBar2 : Object
{
- public Gtk.VBox el;
+ public Gtk.HeaderBar el;
private Xcls_MainWindow _this;
// my vars (def)
// ctor
- public Xcls_vbox(Xcls_MainWindow _owner )
+ public Xcls_HeaderBar2(Xcls_MainWindow _owner )
{
_this = _owner;
- _this.vbox = this;
- this.el = new Gtk.VBox( false, 0 );
+ this.el = new Gtk.HeaderBar();
// my vars (dec)
// set gobject values
- var child_0 = new Xcls_HeaderBar3( _this );
- child_0.ref();
- this.el.pack_start ( child_0.el , false,true,0 );
- var child_1 = new Xcls_mainpane( _this );
- child_1.ref();
- this.el.pack_start ( child_1.el , true,true,0 );
- var child_2 = new Xcls_statusbar( _this );
- child_2.ref();
- this.el.pack_end ( child_2.el , false,true,0 );
+ this.el.title = "Application Builder";
+ this.el.show_close_button = true;
}
// user defined functions
}
- public class Xcls_HeaderBar3 : Object
+ public class Xcls_vbox : Object
{
- public Gtk.HeaderBar el;
+ public Gtk.VBox el;
private Xcls_MainWindow _this;
// my vars (def)
// ctor
- public Xcls_HeaderBar3(Xcls_MainWindow _owner )
+ public Xcls_vbox(Xcls_MainWindow _owner )
{
_this = _owner;
- this.el = new Gtk.HeaderBar();
+ _this.vbox = this;
+ this.el = new Gtk.VBox( false, 0 );
// my vars (dec)
// set gobject values
- this.el.title = "Application Builder";
- this.el.show_close_button = true;
-
- // init method
-
- {
- // _this.el.set_titlebar(this.el);
- }
+ var child_0 = new Xcls_mainpane( _this );
+ child_0.ref();
+ this.el.pack_start ( child_0.el , true,true,0 );
+ var child_1 = new Xcls_statusbar( _this );
+ child_1.ref();
+ this.el.pack_end ( child_1.el , false,true,0 );
}
// user defined functions