From e29c9fbdc6c7bd2fd4cb66abfc8e0f12b55a7fd7 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 18 May 2015 17:46:11 +0800 Subject: [PATCH] src/Builder4/DialogTemplateSelect.bjs src/Builder4/DialogTemplateSelect.vala --- src/Builder4/DialogTemplateSelect.bjs | 26 +++++++++++++------------- src/Builder4/DialogTemplateSelect.vala | 10 +++++----- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/Builder4/DialogTemplateSelect.bjs b/src/Builder4/DialogTemplateSelect.bjs index 9f2ffb0e1..b0b327005 100644 --- a/src/Builder4/DialogTemplateSelect.bjs +++ b/src/Builder4/DialogTemplateSelect.bjs @@ -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", @@ -25,15 +25,15 @@ "$ 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" }, { @@ -45,14 +45,14 @@ "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", @@ -63,15 +63,15 @@ ] }, { - "* 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" }, { @@ -83,14 +83,14 @@ "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", @@ -104,20 +104,20 @@ }, { "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" } ] diff --git a/src/Builder4/DialogTemplateSelect.vala b/src/Builder4/DialogTemplateSelect.vala index c5395cdc4..321eb1824 100644 --- a/src/Builder4/DialogTemplateSelect.vala +++ b/src/Builder4/DialogTemplateSelect.vala @@ -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) -- 2.39.2