From ad63bf0c42314278e446c495c6e6022b3d418391 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 18 May 2015 17:50:31 +0800 Subject: [PATCH] src/Builder4/ClutterFiles.bjs src/Builder4/ClutterFiles.vala --- src/Builder4/ClutterFiles.bjs | 6 +++--- src/Builder4/ClutterFiles.vala | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Builder4/ClutterFiles.bjs b/src/Builder4/ClutterFiles.bjs index 063d03277..9e4fbd09d 100644 --- a/src/Builder4/ClutterFiles.bjs +++ b/src/Builder4/ClutterFiles.bjs @@ -17,7 +17,7 @@ "* init" : "this.fileitems = new Gee.ArrayList();\n", "Clutter.ScrollMode scroll_mode" : "Clutter.ScrollMode.VERTICALLY", "xtype" : "ScrollActor", - "| void loadProject" : "(Project.Project pr) {\n // list all the files, and create new Xcls_fileitem for each one.\n \n // LEAK --- we should unref all the chilren...\n this.filelayout.el.y = 0;\n this.clearFiles();\n \n print(\"clutter files - load project: \" + pr.name +\"\\n\");\n // should unref.. them hopefully.\n this.fileitems = new Gee.ArrayList();\n\n \n\n var fiter = pr.sortedFiles().list_iterator();\n while (fiter.next()) {\n var a = new Xcls_fileitem(this,fiter.get());\n this.fileitems.add(a);\n\n// a.ref();\n print(\"add to clutter file view: \" + fiter.get().name + \"\\n\");\n this.filelayout.el.add_child(a.el);\n }\n \n \n \n this.el.show_all();\n}\n", + "| void loadProject" : "(Project.Project pr) {\n // list all the files, and create new Xcls_fileitem for each one.\n \n // LEAK --- we should unref all the chilren...\n this.filelayout.el.y = 0;\n this.clearFiles();\n \n print(\"clutter files - load project: \" + pr.name +\"\\n\");\n // should unref.. them hopefully.\n this.fileitems = new Gee.ArrayList();\n\n \n\n var fiter = pr.sortedFiles().list_iterator();\n while (fiter.next()) {\n var a = new Xcls_fileitem(this,fiter.get());\n this.fileitems.add(a);\n\n// a.ref();\n print(\"add to clutter file view: \" + fiter.get().name + \"\\n\");\n this.filelayout.el.add_child(a.el);\n }\n \n \n \n this.el.show();\n}\n", "# Gdk.Pixbuf missing_thumb_pixbuf" : "null", "@ void open" : "(JsRender.JsRender file)", "$ xns" : "Clutter", @@ -81,8 +81,8 @@ }, { "* ctor" : "new Clutter.Text.full(\"Sans 10px\", file.nickType(),new Clutter.Color.from_string(\"#fff\"))", - "id" : "+typetitle", "* args" : "JsRender.JsRender file", + "id" : "+typetitle", "$ x_expand" : true, "* pack" : "add_child", "xtype" : "Text", @@ -93,8 +93,8 @@ }, { "* ctor" : "new Clutter.Text.full(\"Sans 10px\", file.nickName(),new Clutter.Color.from_string(\"#fff\"))", - "id" : "+title", "* args" : "JsRender.JsRender file", + "id" : "+title", "$ x_expand" : true, "* pack" : "add_child", "xtype" : "Text", diff --git a/src/Builder4/ClutterFiles.vala b/src/Builder4/ClutterFiles.vala index 06f7bd49d..86b2bc86a 100644 --- a/src/Builder4/ClutterFiles.vala +++ b/src/Builder4/ClutterFiles.vala @@ -114,7 +114,7 @@ public class Xcls_ClutterFiles : Object - this.el.show_all(); + this.el.show(); } public void set_size (float w, float h) { -- 2.39.2