From 286396584ebb31073a8f66d83dc5fe3874ffe98d Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 1 Dec 2010 21:22:25 +0800 Subject: [PATCH] XObjectBase/GtkListStore.js --- XObjectBase/GtkListStore.js | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/XObjectBase/GtkListStore.js b/XObjectBase/GtkListStore.js index a719a94c1..8706cd6b0 100644 --- a/XObjectBase/GtkListStore.js +++ b/XObjectBase/GtkListStore.js @@ -12,17 +12,20 @@ GtkListStore = XObject.define( function(cfg) { XObject.call(this, cfg); // this is an example... - this.el.set_column_types ( 6, [ - GObject.TYPE_STRING, - GObject.TYPE_STRING, - GObject.TYPE_STRING, - GObject.TYPE_STRING, - GObject.TYPE_STRING, - GObject.TYPE_STRING - ] ); + }, XObject, { - pack : 'set_model' + pack : 'set_model', + init : function() { + this.el.set_column_types ( 6, [ + GObject.TYPE_STRING, + GObject.TYPE_STRING, + GObject.TYPE_STRING, + GObject.TYPE_STRING, + GObject.TYPE_STRING, + GObject.TYPE_STRING + ] ); + } } ); -- 2.39.2