Sample/DialogNewComponent.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 27 May 2010 10:14:16 +0000 (18:14 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 27 May 2010 10:14:16 +0000 (18:14 +0800)
Sample/DialogNewComponent.js

index fa85c27..84844b0 100644 (file)
@@ -133,34 +133,29 @@ DialogNewComponent=new XObject({
                             },
             items : [
                 {
-                    xtype: Gtk.HBox,
-                    pack : "pack_start,false,true,0",
+                    xtype: Gtk.Table,
+                    n_columns : 2,
+                    n_rows : 3,
+                    pack : "pack_start,false,false,0",
+                    homogeneous : false,
                     items : [
                         {
                             xtype: Gtk.Label,
-                            pack : "pack_start,false,true,0",
                             label : "Component Name",
+                            pack : "add",
                             xpad : 10
                         },
                         {
                             xtype: Gtk.Entry,
-                            pack : "pack_end,true,true,0",
-                            id : "xnsid"
-                        }
-                    ]
-                },
-                {
-                    xtype: Gtk.Table,
-                    n_columns : 2,
-                    n_rows : 3,
-                    pack : "pack_start,false,false,0",
-                    homogeneous : false,
-                    items : [
+                            id : "xnsid",
+                            pack : "add"
+                        },
                         {
                             xtype: Gtk.Label,
-                            label : "parent",
+                            label : "title",
                             pack : "add",
-                            xalign : 0.9,
+                            x_options : 0,
+                            xalign : 1,
                             justify : Gtk.Justification.RIGHT,
                             visible : true
                         },
@@ -174,6 +169,7 @@ DialogNewComponent=new XObject({
                         },
                         {
                             xtype: Gtk.Label,
+                            x_options : 0,
                             label : "title",
                             pack : "add",
                             xalign : 0.9,
@@ -190,6 +186,7 @@ DialogNewComponent=new XObject({
                         },
                         {
                             xtype: Gtk.Label,
+                            x_options : 0,
                             label : "parent",
                             pack : "add",
                             xalign : 1,