Sample/RooProjectProperties.js
authorAlan Knowles <alan@akbkhome.com>
Tue, 25 May 2010 10:52:37 +0000 (18:52 +0800)
committerAlan Knowles <alan@akbkhome.com>
Tue, 25 May 2010 10:52:37 +0000 (18:52 +0800)
Sample/RooProjectProperties.js

index 0f849e4..798b2d0 100644 (file)
@@ -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
                         }
                     ]
                 }