src/Builder4/EditProject.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 21 May 2015 06:09:36 +0000 (14:09 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 21 May 2015 06:09:36 +0000 (14:09 +0800)
src/Builder4/EditProject.vala

src/Builder4/EditProject.bjs
src/Builder4/EditProject.vala

index e59cfc5..599247c 100644 (file)
@@ -24,8 +24,8 @@
    "items" : [
     {
      "bool expand" : true,
-     "$ pack" : " get_content_area().add \n \n",
      "xtype" : "Box",
+     "$ pack" : " get_content_area().add \n \n",
      "$ xns" : "Gtk",
      "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
      "$ homogeneous" : false,
@@ -39,8 +39,8 @@
        "items" : [
         {
          "label" : "Project type :",
-         "* pack" : "pack_start,false,true,3",
          "xtype" : "Label",
+         "* pack" : "pack_start,false,true,3",
          "$ xns" : "Gtk"
         },
         {
          "items" : [
           {
            "id" : "cellrender",
-           "xtype" : "CellRendererText",
            "* pack" : "pack_start,true",
+           "xtype" : "CellRendererText",
            "$ xns" : "Gtk"
           },
           {
            "id" : "model",
-           "* pack" : "set_model",
            "xtype" : "ListStore",
+           "* pack" : "set_model",
            "$ columns" : "typeof(string),typeof(string)",
            "n_columns" : 2,
            "$ xns" : "Gtk",
@@ -74,6 +74,7 @@
        "$ create_folders" : false,
        "id" : "dir",
        "$ action" : "Gtk.FileChooserAction.SELECT_FOLDER",
+       "bool expand" : true,
        "* pack" : "pack_end,true,true,5",
        "xtype" : "FileChooserWidget",
        "$ xns" : "Gtk",
     },
     {
      "label" : "OK",
-     "xtype" : "Button",
      "* pack" : "add_action_widget,1",
+     "xtype" : "Button",
      "$ xns" : "Gtk"
     },
     {
      "label" : "Cancel",
-     "* pack" : "add_action_widget,0",
      "xtype" : "Button",
+     "* pack" : "add_action_widget,0",
      "$ xns" : "Gtk"
     }
    ]
index d482e3a..ee58e5e 100644 (file)
@@ -316,6 +316,7 @@ public class EditProject : Object
             // my vars (dec)
 
             // set gobject values
+            this.el.expand = true;
             this.el.create_folders = false;
             this.el.select_multiple = false;
         }