Clones.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 30 Oct 2018 07:44:00 +0000 (15:44 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 30 Oct 2018 07:44:00 +0000 (15:44 +0800)
Clones.vala

Clones.bjs
Clones.vala

index c4768b0..ba9a5b3 100644 (file)
@@ -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",
index d653e29..5e6da46 100644 (file)
@@ -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();