Clones.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 30 Oct 2018 06:27:09 +0000 (14:27 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 30 Oct 2018 06:27:09 +0000 (14:27 +0800)
Clones.vala

Clones.bjs
Clones.vala

index b0edbc1..b789815 100644 (file)
@@ -12,7 +12,7 @@
     "delete_event" : "(self, event) => {\n    this.el.hide();\n    return true; \n    //test  \n}\n ",
     "response" : "(self, response_id) =>  { \n \n        this.el.hide();\n  \n}"
    },
-   "default_width" : 600,
+   "default_width" : 800,
    "$ deletable" : true,
    "| 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",
    "title" : "Manage Clones",
@@ -84,6 +84,7 @@
       {
        "* init" : "  {\n  \n   this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);\n}\n",
        "bool expand" : true,
+       "bool hexpand" : true,
        "xtype" : "ScrolledWindow",
        "* pack" : "pack_end,false,false,0",
        "Gtk.ShadowType shadow_type" : "Gtk.ShadowType.IN",
     {
      "label" : "Close",
      "id" : "ok_button",
+     "bool expand" : false,
      "* pack" : "add_action_widget,1 ",
      "xtype" : "Button",
      "$ xns" : "Gtk"
index 51de068..0ae46b3 100644 (file)
@@ -42,7 +42,7 @@ public class Clones : Object
         this.el.title = "Manage Clones";
         this.el.border_width = 3;
         this.el.default_height = 500;
-        this.el.default_width = 600;
+        this.el.default_width = 800;
         this.el.deletable = true;
         this.el.modal = true;
         var child_0 = new Xcls_Box2( _this );
@@ -444,6 +444,7 @@ public class Clones : Object
 
             // set gobject values
             this.el.expand = true;
+            this.el.hexpand = true;
             this.el.shadow_type = Gtk.ShadowType.IN;
             var child_0 = new Xcls_reposView( _this );
             child_0.ref();
@@ -968,6 +969,7 @@ public class Clones : Object
             // my vars (dec)
 
             // set gobject values
+            this.el.expand = false;
             this.el.label = "Close";
         }