Clones.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 24 Dec 2018 07:32:43 +0000 (15:32 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 24 Dec 2018 07:32:43 +0000 (15:32 +0800)
Clones.vala

Clones.bjs
Clones.vala

index 86218c1..1cb2f79 100644 (file)
@@ -13,9 +13,9 @@
     "response" : "(self, response_id) =>  { \n \n        this.el.hide();\n  \n}"
    },
    "boolean deletable" : true,
     "response" : "(self, response_id) =>  { \n \n        this.el.hide();\n  \n}"
    },
    "boolean deletable" : true,
+   "| void loadAndShow" : "() {\n\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",
    "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",
-   "void loadAndShow" : "() {\n\n}\n",
    "title" : "Manage Clones",
    "xtype" : "Dialog",
    "default_height" : 500,
    "title" : "Manage Clones",
    "xtype" : "Dialog",
    "default_height" : 500,
index 572be58..5cb0e18 100644 (file)
@@ -32,7 +32,6 @@ public class Clones : Object
     public Xcls_cr_all_branches cr_all_branches;
 
         // my vars (def)
     public Xcls_cr_all_branches cr_all_branches;
 
         // my vars (def)
-    public void loadAndShow;
 
     // ctor
     public Clones()
 
     // ctor
     public Clones()
@@ -41,10 +40,6 @@ public class Clones : Object
         this.el = new Gtk.Dialog();
 
         // my vars (dec)
         this.el = new Gtk.Dialog();
 
         // my vars (dec)
-        this.loadAndShow = () {
-
-}
-;
 
         // set gobject values
         this.el.title = "Manage Clones";
 
         // set gobject values
         this.el.title = "Manage Clones";
@@ -71,6 +66,9 @@ public class Clones : Object
     }
 
     // user defined functions
     }
 
     // user defined functions
+    public void loadAndShow () {
+    
+    }
     public void show ()    {
     
         GLib.debug("show clones?");
     public void show ()    {
     
         GLib.debug("show clones?");