From 99467565e2d2c04cec960a40ed105ad82e3f27bb Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 1 Jun 2015 18:24:54 +0800 Subject: [PATCH] src/Builder4/ClutterFiles.bjs src/Builder4/ClutterFiles.vala --- src/Builder4/ClutterFiles.bjs | 2 +- src/Builder4/ClutterFiles.vala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Builder4/ClutterFiles.bjs b/src/Builder4/ClutterFiles.bjs index 89cd04761..bcc2bed34 100644 --- a/src/Builder4/ClutterFiles.bjs +++ b/src/Builder4/ClutterFiles.bjs @@ -18,7 +18,7 @@ "$ 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(75,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(0,50);\n // scroll...\n _this.filelayout.el.y = 0.0f;\n \n}\n", + "| 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(75,0);\n \n \n this.scroller.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.scroller.el.set_position(0,50);\n // scroll...\n _this.filelayout.el.y = 0.0f;\n \n}\n", "# Gee.ArrayList fileitems" : "new Gee.ArrayList()", "items" : [ { diff --git a/src/Builder4/ClutterFiles.vala b/src/Builder4/ClutterFiles.vala index 96ba4e85e..9c859f8de 100644 --- a/src/Builder4/ClutterFiles.vala +++ b/src/Builder4/ClutterFiles.vala @@ -164,7 +164,7 @@ public class Xcls_ClutterFiles : Object this.scroller.el.set_size( // this.el.get_stage().width-150, - w-50, + w, h // this.el.get_stage().height ); -- 2.39.2