From 6d024784403e361587054ff91bf97de3fbc4cab4 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 24 Dec 2018 15:33:01 +0800 Subject: [PATCH] Clones.bjs Clones.vala --- Clones.bjs | 2 +- Clones.vala | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Clones.bjs b/Clones.bjs index 1cb2f79a..8ffb12cd 100644 --- a/Clones.bjs +++ b/Clones.bjs @@ -13,7 +13,7 @@ "response" : "(self, response_id) => { \n \n this.el.hide();\n \n}" }, "boolean deletable" : true, - "| void loadAndShow" : "() {\n\n}\n", + "| void loadAndShow" : "() {\n\t\n\tGitRepo.updateAll(\"show_clones\");\n}\n", "default_width" : 1024, "| void show" : "() {\n\n GLib.debug(\"show clones?\");\n this.el.set_deletable(true);\n this.el.set_gravity(Gdk.Gravity.NORTH);\n this.el.move((Gdk.Screen.width() / 2 ) -400 ,0);\n \n this.el.set_default_size(\n\t\t\tint.min(1024,Gdk.Screen.width()),\n\t\t\tint.max(500,Gdk.Screen.height() - 300)\n\t);\n \n this.el.show_all();\n _this.reposStore.load();\n this.el.set_keep_above(true);\n GLib.debug(\"show clones = run?\");\n this.el.run();\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", "title" : "Manage Clones", diff --git a/Clones.vala b/Clones.vala index 5cb0e184..fce0ffe9 100644 --- a/Clones.vala +++ b/Clones.vala @@ -67,7 +67,8 @@ public class Clones : Object // user defined functions public void loadAndShow () { - + + GitRepo.updateAll("show_clones"); } public void show () { -- 2.39.2