From 17692b783fb9b817555389c73e7e926d19d224db Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 30 Oct 2018 14:27:09 +0800 Subject: [PATCH] Clones.bjs Clones.vala --- Clones.bjs | 4 +++- Clones.vala | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Clones.bjs b/Clones.bjs index b0edbc16..b7898151 100644 --- a/Clones.bjs +++ b/Clones.bjs @@ -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", @@ -229,6 +230,7 @@ { "label" : "Close", "id" : "ok_button", + "bool expand" : false, "* pack" : "add_action_widget,1 ", "xtype" : "Button", "$ xns" : "Gtk" diff --git a/Clones.vala b/Clones.vala index 51de068f..0ae46b3b 100644 --- a/Clones.vala +++ b/Clones.vala @@ -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"; } -- 2.39.2