From dd4e53f0cf67e6bc699f04071389ff202569a9dc Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 25 May 2010 18:52:37 +0800 Subject: [PATCH] Sample/RooProjectProperties.js --- Sample/RooProjectProperties.js | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/Sample/RooProjectProperties.js b/Sample/RooProjectProperties.js index 0f849e49a..798b2d0ce 100644 --- a/Sample/RooProjectProperties.js +++ b/Sample/RooProjectProperties.js @@ -15,6 +15,12 @@ RooProjectProperties=new XObject({ show : function() { this.el.show_all(); }, + listeners : { + "delete_event":function (self, event) { + this.el.hide() + return false; + } + }, items : [ { xtype: Gtk.VBox, @@ -27,20 +33,35 @@ RooProjectProperties=new XObject({ pack : "add", n_columns : 2, n_rows : 2, + homogeneous : true, items : [ { xtype: Gtk.Label, pack : "add", label : "baseURL", - left_attach : 0 + 'eft-attac' : 0, + 'op-attac' : 0, + 'ight-attac' : 1 + }, + { + xtype: Gtk.Entry, + pack : "add", + 'eft-attac' : 1, + 'op-attac' : 0, + 'ight-attac' : 2 + }, + { + xtype: Gtk.Label, + pack : "add", + label : "baseURL", + left_attach : 0, + 'op-attac' : 1 }, { xtype: Gtk.Entry, pack : "add", left_attach : 1, - listeners : { - - } + 'op-attac' : 1 } ] } -- 2.39.2