projects
/
app.Builder.js
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3252f70
)
XObjectBase/GtkTreeStore.js
author
Alan Knowles
<alan@akkbhome.com>
Wed, 1 Dec 2010 23:56:01 +0000
(07:56 +0800)
committer
Alan Knowles
<alan@akkbhome.com>
Wed, 1 Dec 2010 23:56:01 +0000
(07:56 +0800)
XObjectBase/GtkTreeStore.js
patch
|
blob
|
history
diff --git
a/XObjectBase/GtkTreeStore.js
b/XObjectBase/GtkTreeStore.js
index
ebb828a
..
5003bec
100644
(file)
--- a/
XObjectBase/GtkTreeStore.js
+++ b/
XObjectBase/GtkTreeStore.js
@@
-16,20
+16,18
@@
GtkListStore = XObject.define(
},
XObject,
{
},
XObject,
{
- pack :
false
,
+ pack :
'set_model'
,
init : function()
{
init : function()
{
- // this is done before pack?
- this.el = new Gtk.TreeViewColumn();
- this.parent.el.append_column(this.el);
-
XObject.prototype.init.call(this);
XObject.prototype.init.call(this);
-
- if (this.items.length) {
- this.el.add_attribute(this.items[0].el , 'markup', 4 );
- }
-
-
+ this.el.set_column_types ( 6, [
+ GObject.TYPE_STRING,
+ GObject.TYPE_STRING,
+ GObject.TYPE_STRING,
+ GObject.TYPE_STRING,
+ GObject.TYPE_STRING,
+ GObject.TYPE_STRING
+ ] );
}
}
}
}