aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Harvey <chris@basementcode.com>2010-08-02 01:42:38 -0400
committerChristopher Harvey <chris@basementcode.com>2010-08-02 01:42:38 -0400
commit4930e203a35588971b2629bcb94d9f42e067e4c6 (patch)
treea49e4cb8f242ea720db281ea44ed3d547315f20f
parentAdded colors to text that the user can edit in the treeview to indicate possi... (diff)
downloadventoo-4930e203a35588971b2629bcb94d9f42e067e4c6.tar.gz
ventoo-4930e203a35588971b2629bcb94d9f42e067e4c6.tar.bz2
ventoo-4930e203a35588971b2629bcb94d9f42e067e4c6.zip
Added setValid and set Invalid to AugEditTree
-rw-r--r--src/ventoo/AugEditTree.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ventoo/AugEditTree.py b/src/ventoo/AugEditTree.py
index 559cf7f..52bf9ac 100644
--- a/src/ventoo/AugEditTree.py
+++ b/src/ventoo/AugEditTree.py
@@ -114,6 +114,12 @@ class AugEditTree(gtk.TreeView):
break
return ret
+ def setValid(self, path):
+ self.tv_store[path][3] = False
+
+ def setInvalid(self, path):
+ self.tv_store[path][3] = True
+
"""
Same as get_label_path, except converts a string path to an
iterator for you.
@@ -122,4 +128,4 @@ class AugEditTree(gtk.TreeView):
return self.get_label_path(self.tv_store.get_iter(path))
def addElement(self, parentIter, enabled, label, text):
- return self.tv_store.append(parentIter, [enabled, label, text, False, '#C9C9C9'])
+ return self.tv_store.append(parentIter, [enabled, label, text, False, '#FF0000'])