src/Builder4/ClutterFiles.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 27 May 2015 08:30:44 +0000 (16:30 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 27 May 2015 08:30:44 +0000 (16:30 +0800)
src/Builder4/ClutterFiles.vala

src/Builder4/ClutterFiles.bjs
src/Builder4/ClutterFiles.vala

index 9869105..67f7318 100644 (file)
@@ -17,6 +17,7 @@
    "@ void open" : "(JsRender.JsRender file)",
    "$ xns" : "Clutter",
    "bool reactive" : true,
+   "Project.Project project" : "",
    "|  void set_size" : "(float w, float h) \n{\n    \n     // called by window resize... with is alreaddy -50 (for the buttons?)\n     \n\n\n\n     if (this.el == null) {\n        print(\"object not ready yet?\");\n        return;\n    }\n    \n    print(\"recv width %f, filelayoutw = %f\", w, w-200);\n    \n    w = GLib.Math.floorf ( w/120.0f) * 120.0f;\n    \n    \n    \n    \n   //_this.filelayout_manager.el.max_column_width = w - 200;\n   _this.filelayout.el.width = w - 200;\n   \n    this.el.set_size(\n           // this.el.get_stage().width-150,\n           w,\n           h  // this.el.get_stage().height\n    );\n    \n    // 100 right for buttons ..\n    this.el.set_position(0,0);\n   \n   \n   this.scroller.el.set_size(\n           // this.el.get_stage().width-150,\n           w-50,\n           h  // this.el.get_stage().height\n    );\n    \n    // 100 right for buttons ..\n    this.scroller.el.set_position(75,50);\n    // scroll...\n    _this.filelayout.el.y = 0.0f;\n    \n}\n",
    "# Gee.ArrayList<Object> fileitems" : "new Gee.ArrayList<Object>()",
    "items" : [
index f87a8d6..c6da541 100644 (file)
@@ -24,6 +24,7 @@ public class Xcls_ClutterFiles : Object
     public Clutter.ScrollMode scroll_mode;
     public Gdk.Pixbuf missing_thumb_pixbuf;
     public signal void open (JsRender.JsRender file);
+    public Project.Project project;
     public Gee.ArrayList<Object> fileitems;
 
     // ctor