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:
7533ff3
)
DependTree/Window.js
author
Alan Knowles
<alan@akbkhome.com>
Thu, 2 Dec 2010 11:23:13 +0000
(19:23 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 2 Dec 2010 11:23:13 +0000
(19:23 +0800)
DependTree/Window.js
patch
|
blob
|
history
diff --git
a/DependTree/Window.js
b/DependTree/Window.js
index
835771d
..
e40ba15
100644
(file)
--- a/
DependTree/Window.js
+++ b/
DependTree/Window.js
@@
-107,7
+107,7
@@
Window=new XObject({
var old = this.list.getValue(path, 1);
// print(JSON.stringify(old));
var old = this.list.getValue(path, 1);
// print(JSON.stringify(old));
- this.list.setValue(path, 1,
!old
)
+ this.list.setValue(path, 1,
old ? false : true
)
@@
-140,6
+140,33
@@
Window=new XObject({
xtype: Gtk.CellRendererText
}
]
xtype: Gtk.CellRendererText
}
]
+ },
+ {
+ xtype: Gtk.TreeViewColumn,
+ title : "Active",
+ pack : false,
+ items : [
+ {
+ xtype: Gtk.CellRendererToggle,
+ listeners : {
+ toggled : function (self, path) {
+ print("TOGGLE");
+ // this.list
+
+
+
+ var old = this.list.getValue(path, 1);
+ // print(JSON.stringify(old));
+ this.list.setValue(path, 1, old ? false : true)
+
+
+
+
+ }
+ },
+ activatable : true
+ }
+ ]
}
]
}
}
]
}
@@
-163,6
+190,33
@@
Window=new XObject({
xtype: Gtk.CellRendererText
}
]
xtype: Gtk.CellRendererText
}
]
+ },
+ {
+ xtype: Gtk.TreeViewColumn,
+ title : "Active",
+ pack : false,
+ items : [
+ {
+ xtype: Gtk.CellRendererToggle,
+ listeners : {
+ toggled : function (self, path) {
+ print("TOGGLE");
+ // this.list
+
+
+
+ var old = this.list.getValue(path, 1);
+ // print(JSON.stringify(old));
+ this.list.setValue(path, 1, old ? false : true)
+
+
+
+
+ }
+ },
+ activatable : true
+ }
+ ]
}
]
}
}
]
}