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:
750d328
)
XObjectBase/GtkTreeViewColumn.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 2 Dec 2010 10:30:48 +0000
(18:30 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 2 Dec 2010 10:30:48 +0000
(18:30 +0800)
XObjectBase/GtkTreeViewColumn.js
patch
|
blob
|
history
diff --git
a/XObjectBase/GtkTreeViewColumn.js
b/XObjectBase/GtkTreeViewColumn.js
index
bb3691d
..
71f5a67
100644
(file)
--- a/
XObjectBase/GtkTreeViewColumn.js
+++ b/
XObjectBase/GtkTreeViewColumn.js
@@
-34,8
+34,21
@@
GtkTreeViewColumn = XObject.define(
n++;
}
});
+
+
if (this.items.length) {
- this.el.add_attribute(this.items[0].el , 'markup', col );
+
+ switch (XObject.type(this.items[0].xtype)) {
+ case "GtkCellRendererText":
+ this.el.add_attribute(this.items[0].el , 'markup', col );
+ break;
+ case "GtkCellRendererText":
+ this.el.add_attribute(this.items[0].el , 'active', col ); // boolean???
+ break;
+
+ }
+
+
}