From: Alan Knowles Date: Tue, 17 Mar 2015 13:36:27 +0000 (+0800) Subject: src/Builder4/MainWindow.bjs X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=11bdec7f1b77b498f23b2cf7aa76f9ad54d4efd1 src/Builder4/MainWindow.bjs src/Builder4/MainWindow.vala --- diff --git a/src/Builder4/MainWindow.bjs b/src/Builder4/MainWindow.bjs index 5f84ef98d..85c53e5c9 100644 --- a/src/Builder4/MainWindow.bjs +++ b/src/Builder4/MainWindow.bjs @@ -544,7 +544,7 @@ }, { "id" : "statusbar", - "* init" : "{\n Resources.singleton().updateProgress.connect((pos) => {\n if (pos < 1) {\n this.el.hide();\n return;\n }\n this.el.show();\n var cid = this.el.get_context_id(\"resources\");\n this.el.remove_all(cid);\n this.el.push(cid,\"Fetching Resource : %d/6\".print(pos));\n });\n}\n", + "* init" : "{\n Resources.singleton().updateProgress.connect((pos) => {\n if (pos < 1) {\n this.el.hide();\n return;\n }\n this.el.show();\n var cid = this.el.get_context_id(\"resources\");\n this.el.remove_all(cid);\n this.el.push(cid,\"Fetching Resource : %s/6\".printf(pos.to_string()));\n });\n}\n", "xtype" : "Statusbar", "* pack" : "pack_end,false,true,0", "$ xns" : "Gtk" diff --git a/src/Builder4/MainWindow.vala b/src/Builder4/MainWindow.vala index 9353267f3..6b2fc20b2 100644 --- a/src/Builder4/MainWindow.vala +++ b/src/Builder4/MainWindow.vala @@ -2011,7 +2011,7 @@ public class Xcls_MainWindow : Object this.el.show(); var cid = this.el.get_context_id("resources"); this.el.remove_all(cid); - this.el.push(cid,"Fetching Resource : %d/6".print(pos)); + this.el.push(cid,"Fetching Resource : %s/6".printf(pos.to_string())); }); } }