From: Alan Knowles Date: Tue, 30 Oct 2018 07:44:00 +0000 (+0800) Subject: Clones.bjs X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=ae87d613c90a88bde6b50d0d4e071ea886536493 Clones.bjs Clones.vala --- diff --git a/Clones.bjs b/Clones.bjs index c4768b0c..ba9a5b3b 100644 --- a/Clones.bjs +++ b/Clones.bjs @@ -13,7 +13,7 @@ "response" : "(self, response_id) => { \n \n this.el.hide();\n \n}" }, "default_width" : 800, - "| void show" : "() {\n\n \n this.el.set_deletable(false);\n this.el.set_gravity(Gdk.Gravity.NORTH);\n this.el.move(Gdk.Screen.width() / 2 ,0);\n this.el.show_all();\n // load clones..\n// this.get('/reposStore').load();\n \n //this.get('/ok_button').el.set_sensitive(false);\n \n // block until we return.\n// var run_ret = this.el.run();\n// if (run_ret < 1 ) {\n// return \"DONE\";\n// }\n// print(\"RUN RETURN : \" + run_ret);\n// return \"DONE\";\n //print(JSON.stringify(this.get('bug').getValue()));\n // return this.get('bug').getValue();\n //this.success = c.success;\n}\n", + "| void show" : "() {\n\n \n this.el.set_deletable(false);\n this.el.set_gravity(Gdk.Gravity.NORTH);\n this.el.move(Gdk.Screen.width() / 2 ,0);\n this.el.show_all();\n _this.reposStore.load();\n // load clones..\n// this.get('/reposStore').load();\n \n //this.get('/ok_button').el.set_sensitive(false);\n \n // block until we return.\n// var run_ret = this.el.run();\n// if (run_ret < 1 ) {\n// return \"DONE\";\n// }\n// print(\"RUN RETURN : \" + run_ret);\n// return \"DONE\";\n //print(JSON.stringify(this.get('bug').getValue()));\n // return this.get('bug').getValue();\n //this.success = c.success;\n}\n", "$ deletable" : true, "title" : "Manage Clones", "xtype" : "Dialog", diff --git a/Clones.vala b/Clones.vala index d653e294..5e6da46d 100644 --- a/Clones.vala +++ b/Clones.vala @@ -73,6 +73,7 @@ public class Clones : Object this.el.set_gravity(Gdk.Gravity.NORTH); this.el.move(Gdk.Screen.width() / 2 ,0); this.el.show_all(); + _this.reposStore.load(); // load clones.. // this.get('/reposStore').load();