src/Builder4/ClutterFiles.bjs
authorAlan Knowles <alan@roojs.com>
Sun, 24 May 2015 08:34:01 +0000 (16:34 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 24 May 2015 08:34:01 +0000 (16:34 +0800)
src/Builder4/ClutterFiles.vala

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

index 8ab5175..7d20015 100644 (file)
@@ -8,7 +8,6 @@
  "build_module" : "builder",
  "items" : [
   {
-   "# Gee.ArrayList<Xcls_fileitem> fileitems" : "new Gee.ArrayList<Xcls_fileitem>()",
    "id" : "ClutterFiles",
    "|  void clearFiles" : "() {\n    \n    this.filelayout.el.remove_all_children();\n    // we need to unref all the chidren that we loaded though...\n    \n}\n ",
    "Clutter.ScrollMode scroll_mode" : "Clutter.ScrollMode.VERTICALLY",
@@ -19,6 +18,7 @@
    "$ xns" : "Clutter",
    "bool reactive" : true,
    "|  void set_size" : "(float w, float h) \n{\n    \n     // called by window resize... with is alreaddy -50 (for the buttons?)\n     \n\n     if (this.el == null) {\n        print(\"object not ready yet?\");\n        return;\n    }\n   _this.filelayout_manager.el.max_column_width = w - 75;\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.scoller.el.set_size(\n           // this.el.get_stage().width-150,\n           w-150,\n           h  // this.el.get_stage().height\n    );\n    \n    // 100 right for buttons ..\n    this.scoller.el.set_position(75,50);\n}\n",
+   "# Gee.ArrayList<Object> fileitems" : "new Gee.ArrayList<Xcls_fileitem>()",
    "items" : [
     {
      "id" : "project_title",
index 38994f7..1d710d4 100644 (file)
@@ -21,10 +21,10 @@ public class Xcls_ClutterFiles : Object
     public Xcls_filelayout_manager filelayout_manager;
 
         // my vars (def)
-    public Gee.ArrayList<Xcls_fileitem> fileitems;
     public Clutter.ScrollMode scroll_mode;
     public Gdk.Pixbuf missing_thumb_pixbuf;
     public signal void open (JsRender.JsRender file);
+    public Gee.ArrayList<Object> fileitems;
 
     // ctor
     public Xcls_ClutterFiles()
@@ -33,9 +33,9 @@ public class Xcls_ClutterFiles : Object
         this.el = new Clutter.Actor();
 
         // my vars (dec)
-        this.fileitems = new Gee.ArrayList<Xcls_fileitem>();
         this.scroll_mode = Clutter.ScrollMode.VERTICALLY;
         this.missing_thumb_pixbuf = null;
+        this.fileitems = new Gee.ArrayList<Xcls_fileitem>();
 
         // set gobject values
         this.el.reactive = true;