From: Alan Knowles Date: Fri, 15 May 2015 08:19:03 +0000 (+0800) Subject: src/Builder4/MainWindow.bjs X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=338551df840a034dda1ad29cc2a1e9aa2fa369ff;p=app.Builder.js src/Builder4/MainWindow.bjs src/Builder4/MainWindow.vala --- diff --git a/src/Builder4/MainWindow.bjs b/src/Builder4/MainWindow.bjs index 9cdcf5b1b..28359229f 100644 --- a/src/Builder4/MainWindow.bjs +++ b/src/Builder4/MainWindow.bjs @@ -588,7 +588,7 @@ "bool show_text" : true, "id" : "statusbar", "ulong handler_id" : "-1", - "* init" : "{\n this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {\n if (pos < 1) {\n this.el.hide();\n _this.mainpane.el.set_sensitive(true);\n \n return;\n }\n _this.mainpane.el.set_sensitive(false);\n this.el.show();\n this.el.set_fraction ((1.0f * pos) / (1.0f * total));\n this.el.set_text(\"Fetching Resource : %s/%s\".printf(pos.to_string(), total.to_string()));\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/7\".printf(pos.to_string()));\n */ \n });\n}\n", + "* init" : "{\n this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {\n if (pos < 1) {\n this.el.hide();\n _this.mainpane.el.set_sensitive(true);\n \n return;\n }\n _this.mainpane.el.set_sensitive(false);\n this.el.show();\n this.el.set_fraction ((1.0f * pos) / (1.0f * total));\n this.el.set_text(\"Fetching Resource : %s/%s\".printf(pos.to_string(), total.to_string()));\n \n });\n}\n", "xtype" : "ProgressBar", "* pack" : "pack_start,true,true,0", "$ xns" : "Gtk" diff --git a/src/Builder4/MainWindow.vala b/src/Builder4/MainWindow.vala index ff013380e..a03e5839e 100644 --- a/src/Builder4/MainWindow.vala +++ b/src/Builder4/MainWindow.vala @@ -2184,12 +2184,7 @@ public class Xcls_MainWindow : Object this.el.show(); this.el.set_fraction ((1.0f * pos) / (1.0f * total)); this.el.set_text("Fetching Resource : %s/%s".printf(pos.to_string(), total.to_string())); - /* - this.el.show(); - var cid = this.el.get_context_id("resources"); - this.el.remove_all(cid); - this.el.push(cid,"Fetching Resource : %s/7".printf(pos.to_string())); - */ + }); } }