src/Builder4/PopoverFileDetails.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 12 May 2015 08:47:19 +0000 (16:47 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 12 May 2015 08:47:19 +0000 (16:47 +0800)
src/Builder4/PopoverFileDetails.vala

src/Builder4/PopoverFileDetails.bjs
src/Builder4/PopoverFileDetails.vala

index 679ee25..22bc111 100644 (file)
@@ -14,7 +14,7 @@
    "| void show" : "(JsRender.JsRender c, Gtk.Widget btn) \n{\n    this.project = c.project;\n    \n    \n    \n    //if (!this.el) {\n        //this.init();\n     //}\n    \n    _this.name.el.set_text(c.name);\n    _this.title.el.set_text(c.title);\n    _this.parent.el.set_text(c.parent);    \n    _this.region.el.set_text(c.region);\n    _this.modOrder.el.set_text(c.modOrder);\n     _this.permname.el.set_text(c.permname);\n    \n    if (c.path.length > 0) {\n    \n        this.save_btn.el.set_label(\"Save\");\n    } else {\n        this.save_btn.el.set_label(\"Create\");\n    }\n    \n     var ar = new Gee.ArrayList<string>();\n     _this.dbmodel.loadData(ar,\"\");\n    // load the modules... if relivant..\n    if (this.project.xtype == \"Gtk\") {\n        var p = (Project.Gtk)c.project;\n          var cg = p.compilegroups;\n\n        var iter = cg.map_iterator();\n       while(iter.next()) {\n            var key = iter.get_key();\n            if (key == \"_default_\") {\n                continue;\n            }\n            ar.add(key);\n        };\n        _this.dbmodel.loadData(ar, c.build_module);\n\n    }\n    \n     \n    _this.file = c;\n    //console.log('show all');\n    this.el.set_relative_to(btn);\n    \n    \n    this.el.show_all();\n    \n    //this.success = c.success;\n    \n    \n}",
    "# Project.Project project" : "",
    "xtype" : "Popover",
-   "Gtk.PositionType position" : "Gtk.PositionType.RIGHT",
+   "Gtk.PositionType position" : "Gtk.PositionType.LEFT",
    "# JsRender.JsRender file" : "null",
    "$ xns" : "Gtk",
    "Xcls_MainWindow mainwindow" : "null",
@@ -22,6 +22,7 @@
    "uint border_width" : 6,
    "items" : [
     {
+     "bool homogeneous" : false,
      "xtype" : "VBox",
      "$ pack" : "add",
      "$ xns" : "Gtk",
index cb90ffa..ec179bd 100644 (file)
@@ -42,7 +42,7 @@ public class Xcls_PopoverFileDetails : Object
         // set gobject values
         this.el.border_width = 6;
         this.el.modal = true;
-        this.el.position = Gtk.PositionType.RIGHT;
+        this.el.position = Gtk.PositionType.LEFT;
         var child_0 = new Xcls_VBox2( _this );
         child_0.ref();
         this.el.add (  child_0.el  );
@@ -143,7 +143,7 @@ public class Xcls_PopoverFileDetails : Object
         public Xcls_VBox2(Xcls_PopoverFileDetails _owner )
         {
             _this = _owner;
-            this.el = new Gtk.VBox( true, 0 );
+            this.el = new Gtk.VBox( false, 0 );
 
             // my vars (dec)