From 4930e203a35588971b2629bcb94d9f42e067e4c6 Mon Sep 17 00:00:00 2001 From: Christopher Harvey Date: Mon, 2 Aug 2010 01:42:38 -0400 Subject: Added setValid and set Invalid to AugEditTree --- src/ventoo/AugEditTree.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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']) -- cgit v1.2.3-65-gdbad