src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 7 May 2015 10:34:58 +0000 (18:34 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 7 May 2015 10:34:58 +0000 (18:34 +0800)
src/Builder4/MainWindow.vala

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

index 97ca1eb..9a9e9fe 100644 (file)
@@ -25,7 +25,6 @@
    "$ xns" : "Gtk",
    "|             void show" : "() {\n   \n    this.el.show_all();\n\n}",
    "# WindowState windowstate" : "null",
-   "bool decorated" : false,
    "border_width" : 0,
    "$ type" : "Gtk.WindowType.TOPLEVEL",
    "|             void setTitle" : " (string str) {\n    this.el.set_title(this.title + \" - \" + str);\n}\n",
@@ -38,6 +37,7 @@
      "$ 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,
index 36a7440..783e59e 100644 (file)
@@ -62,7 +62,6 @@ public class Xcls_MainWindow : Object
         this.el.border_width = 0;
         this.el.default_height = 500;
         this.el.default_width = 800;
-        this.el.decorated = false;
         var child_0 = new Xcls_vbox( _this );
         child_0.ref();
         this.el.add (  child_0.el  );
@@ -168,6 +167,12 @@ public class Xcls_MainWindow : Object
             // set gobject values
             this.el.title = "Application Builder";
             this.el.show_close_button = true;
+
+            // init method 
+
+            {
+             // _this.el.set_titlebar(this.el);
+            }
         }
 
         // user defined functions