src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 16 Jul 2015 08:35:32 +0000 (16:35 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 16 Jul 2015 08:35:32 +0000 (16:35 +0800)
src/Builder4/MainWindow.vala

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

index aa78db3..032b866 100644 (file)
            "$ xns" : "Gtk"
           }
          ]
-        }
-       ]
-      },
-      {
-       "listeners" : {
-        "clicked" : "  ( ) => {\n   _this.windowstate.switchState(WindowState.State.FILES);\n      \n\n}"
-       },
-       "* pack" : false,
-       "xtype" : "Button",
-       "width_request" : 50,
-       "$ xns" : "Gtk",
-       "height_request" : 50,
-       "$ tooltop_text" : "\"Open File\"",
-       "items" : [
+        },
         {
-         "xtype" : "Image",
-         "utf8 icon_name" : "document-open",
-         "* pack" : "set_image",
-         "$ xns" : "Gtk"
+         "listeners" : {
+          "clicked" : "  ( ) => {\n   _this.windowstate.switchState(WindowState.State.FILES);\n      \n\n}"
+         },
+         "* pack" : false,
+         "xtype" : "Button",
+         "width_request" : 50,
+         "$ xns" : "Gtk",
+         "height_request" : 50,
+         "$ tooltop_text" : "\"Open File\"",
+         "items" : [
+          {
+           "xtype" : "Image",
+           "utf8 icon_name" : "document-open",
+           "* pack" : "set_image",
+           "$ xns" : "Gtk"
+          }
+         ]
+        },
+        {
+         "listeners" : {
+          "clicked" : "  ( ) => {\n  \n    _this.windowstate.switchState(WindowState.State.PREVIEW);\n    \n\n}"
+         },
+         "utf8 tooltip_text" : "Back",
+         "xtype" : "Button",
+         "* pack" : false,
+         "width_request" : 50,
+         "$ xns" : "Gtk",
+         "height_request" : 50,
+         "items" : [
+          {
+           "* pack" : "set_image",
+           "xtype" : "Image",
+           "utf8 icon_name" : "go-previous",
+           "$ xns" : "Gtk"
+          }
+         ]
         }
        ]
       }
      ]
     },
-    {
-     "listeners" : {
-      "clicked" : "  ( ) => {\n  \n    _this.windowstate.switchState(WindowState.State.PREVIEW);\n    \n\n}"
-     },
-     "utf8 tooltip_text" : "Back",
-     "xtype" : "Button",
-     "* pack" : false,
-     "width_request" : 50,
-     "$ xns" : "Gtk",
-     "height_request" : 50,
-     "items" : [
-      {
-       "* pack" : "set_image",
-       "xtype" : "Image",
-       "utf8 icon_name" : "go-previous",
-       "$ xns" : "Gtk"
-      }
-     ]
-    },
     {
      "id" : "vbox",
      "* pack" : "add",
index a1f2885..d5bcd23 100644 (file)
@@ -71,11 +71,9 @@ public class Xcls_MainWindow : Object
         var child_0 = new Xcls_headerbar( _this );
         child_0.ref();
         this.el.set_titlebar (  child_0.el  );
-        var child_1 = new Xcls_Button13( _this );
+        var child_1 = new Xcls_vbox( _this );
         child_1.ref();
-        var child_2 = new Xcls_vbox( _this );
-        child_2.ref();
-        this.el.add (  child_2.el  );
+        this.el.add (  child_1.el  );
 
         // init method
 
@@ -196,8 +194,6 @@ public class Xcls_MainWindow : Object
             var child_0 = new Xcls_Box3( _this );
             child_0.ref();
             this.el.pack_start (  child_0.el  );
-            var child_1 = new Xcls_Button11( _this );
-            child_1.ref();
         }
 
         // user defined functions
@@ -222,6 +218,10 @@ public class Xcls_MainWindow : Object
             var child_0 = new Xcls_MenuButton4( _this );
             child_0.ref();
             this.el.add (  child_0.el  );
+            var child_1 = new Xcls_Button11( _this );
+            child_1.ref();
+            var child_2 = new Xcls_Button13( _this );
+            child_2.ref();
         }
 
         // user defined functions
@@ -425,7 +425,6 @@ public class Xcls_MainWindow : Object
     }
 
 
-
     public class Xcls_Button11 : Object
     {
         public Gtk.Button el;
@@ -483,7 +482,6 @@ public class Xcls_MainWindow : Object
     }
 
 
-
     public class Xcls_Button13 : Object
     {
         public Gtk.Button el;
@@ -543,6 +541,8 @@ public class Xcls_MainWindow : Object
     }
 
 
+
+
     public class Xcls_vbox : Object
     {
         public Gtk.Box el;