src/Builder4/ClutterFiles.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 1 Jun 2015 10:27:37 +0000 (18:27 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 1 Jun 2015 10:27:37 +0000 (18:27 +0800)
src/Builder4/ClutterFiles.vala

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

index 856be05..f14747f 100644 (file)
             "leave_event" : "(  event)  => {\n    this.el.background_color =   Clutter.Color.from_string(\"#000\");\n     this.el.color =   Clutter.Color.from_string(\"#fff\");\n    return false;\n}"
            },
            "id" : "+folderfile",
+           "* args" : "string folderpath",
            "xtype" : "Text",
            "bool x_expand" : true,
            "Clutter.ActorAlign y_align" : "Clutter.ActorAlign.START",
index a3efb46..deeaa2b 100644 (file)
@@ -720,7 +720,7 @@ public class Xcls_ClutterFiles : Object
             child_1.ref();
             this.el.add_child (  child_1.el  );
             this.foldertitle =  child_1;
-            var child_2 = new Xcls_folderfile( _this );
+            var child_2 = new Xcls_folderfile( _this ,folderpath);
             child_2.ref();
 
             // init method
@@ -790,7 +790,7 @@ public class Xcls_ClutterFiles : Object
         public string filepath;
 
         // ctor
-        public Xcls_folderfile(Xcls_ClutterFiles _owner )
+        public Xcls_folderfile(Xcls_ClutterFiles _owner , string folderpath)
         {
             _this = _owner;
             this.el = new Clutter.Text();