src/Builder4/ClutterFiles.vala
"$ x_align" : "Clutter.ActorAlign.START"
},
{
+ "listeners" : {
+ "button_press_event" : " ( event) => {\n _this.open(this.filepath);\n return false;\n} "
+ },
"* ctor" : "new Clutter.Text.full(\"Sans 10px\", GLib.Path.get_basename(filepath), Clutter.Color.from_string(\"#fff\"))",
"id" : "*folderfile",
"* args" : "string filepath",
this.el.x_expand = true;
this.el.y_align = Clutter.ActorAlign.START;
this.el.y_expand = true;
+
+ //listeners
+ this.el.button_press_event.connect( ( event) => {
+ _this.open(this.filepath);
+ return false;
+ });
}
// user defined functions