src/Builder4/DialogTemplateSelect.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 18 May 2015 09:46:11 +0000 (17:46 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 18 May 2015 09:46:11 +0000 (17:46 +0800)
src/Builder4/DialogTemplateSelect.vala

src/Builder4/DialogTemplateSelect.bjs
src/Builder4/DialogTemplateSelect.vala

index 9f2ffb0..b0b3270 100644 (file)
@@ -12,8 +12,8 @@
     "delete_event" : "  (self, event)  =>{\n    this.el.hide();\n    return true;\n}"
    },
    "default_width" : 400,
-   "xtype" : "Dialog",
    "title" : "Add an Object",
+   "xtype" : "Dialog",
    "default_height" : 200,
    "$ modal" : true,
    "$ xns" : "Gtk",
      "$ xns" : "Gtk",
      "items" : [
       {
+       "gint margin" : 3,
        "* pack" : "pack_start,false,false,0",
        "xtype" : "HBox",
-       "gint margin" : 3,
        "$ xns" : "Gtk",
        "items" : [
         {
          "label" : "Select Template : ",
-         "* pack" : "pack_start,false,false",
          "xtype" : "Label",
+         "* pack" : "pack_start,false,false",
          "$ xns" : "Gtk"
         },
         {
          "items" : [
           {
            "id" : "cellrenderer",
-           "* pack" : "pack_start,true",
            "xtype" : "CellRendererText",
+           "* pack" : "pack_start,true",
            "$ xns" : "Gtk"
           },
           {
            "id" : "model",
-           "xtype" : "ListStore",
            "* pack" : "set_model",
+           "xtype" : "ListStore",
            "$ columns" : "typeof(string),typeof(string)",
            "n_columns" : 2,
            "$ xns" : "Gtk",
        ]
       },
       {
-       "* pack" : "pack_start,false,false,0",
-       "xtype" : "HBox",
        "gint margin" : 3,
+       "* pack" : "pack_start,false,false,0",
+       "xtype" : "Box",
        "$ xns" : "Gtk",
        "items" : [
         {
          "label" : "Select Database Table : ",
-         "* pack" : "pack_start,false,false",
          "xtype" : "Label",
+         "* pack" : "pack_start,false,false",
          "$ xns" : "Gtk"
         },
         {
          "items" : [
           {
            "id" : "dbcellrenderer",
-           "* pack" : "pack_start,true",
            "xtype" : "CellRendererText",
+           "* pack" : "pack_start,true",
            "$ xns" : "Gtk"
           },
           {
            "id" : "dbmodel",
-           "xtype" : "ListStore",
            "* pack" : "set_model",
+           "xtype" : "ListStore",
            "$ columns" : "typeof(string),typeof(string)",
            "n_columns" : 2,
            "$ xns" : "Gtk",
     },
     {
      "label" : "Cancel",
-     "* pack" : "add_action_widget,0",
      "xtype" : "Button",
+     "* pack" : "add_action_widget,0",
      "$ xns" : "Gtk"
     },
     {
      "label" : "Just add it",
-     "xtype" : "Button",
      "* pack" : "add_action_widget,1",
+     "xtype" : "Button",
      "$ xns" : "Gtk"
     },
     {
      "label" : "OK",
-     "* pack" : "add_action_widget,2",
      "xtype" : "Button",
+     "* pack" : "add_action_widget,2",
      "$ xns" : "Gtk"
     }
    ]
index c5395cd..321eb18 100644 (file)
@@ -151,7 +151,7 @@ public class DialogTemplateSelect : Object
             var child_0 = new Xcls_HBox3( _this );
             child_0.ref();
             this.el.pack_start (  child_0.el , false,false,0 );
-            var child_1 = new Xcls_HBox8( _this );
+            var child_1 = new Xcls_Box8( _this );
             child_1.ref();
             this.el.pack_start (  child_1.el , false,false,0 );
         }
@@ -309,19 +309,19 @@ public class DialogTemplateSelect : Object
                                              
         }
     }
-    public class Xcls_HBox8 : Object 
+    public class Xcls_Box8 : Object 
     {
-        public Gtk.HBox el;
+        public Gtk.Box el;
         private DialogTemplateSelect  _this;
 
 
             // my vars (def)
 
         // ctor 
-        public Xcls_HBox8(DialogTemplateSelect _owner )
+        public Xcls_Box8(DialogTemplateSelect _owner )
         {
             _this = _owner;
-            this.el = new Gtk.HBox( true, 0 );
+            this.el = new Gtk.Box( null, 0 );
 
             // my vars (dec)