aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristopher Harvey <chris@basementcode.com>2010-08-04 13:08:25 -0400
committerChristopher Harvey <chris@basementcode.com>2010-08-04 13:08:25 -0400
commit7bd36bc6b4d2c3eda6dd977a9235d56824384f60 (patch)
tree5db855cd210d1366e48d34c4b5c2679e358e40f5 /src
parentRemoved a stragling pdb trace from getDevs for fstab (diff)
downloadventoo-7bd36bc6b4d2c3eda6dd977a9235d56824384f60.tar.gz
ventoo-7bd36bc6b4d2c3eda6dd977a9235d56824384f60.tar.bz2
ventoo-7bd36bc6b4d2c3eda6dd977a9235d56824384f60.zip
Added storage to AugFileTree for the foreground colour of file names. addPath can now also set the foreground paint colour
Diffstat (limited to 'src')
-rw-r--r--src/ventoo/AugFileTree.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/ventoo/AugFileTree.py b/src/ventoo/AugFileTree.py
index 7e6c85f..336a06e 100644
--- a/src/ventoo/AugFileTree.py
+++ b/src/ventoo/AugFileTree.py
@@ -26,7 +26,8 @@ import gtk
class AugFileTree(gtk.TreeView):
def __init__(self):
- self.tv_store = gtk.TreeStore(str)
+ # file paint-fg fg-colour
+ self.tv_store = gtk.TreeStore(str, 'gboolean', str)
gtk.TreeView.__init__(self, self.tv_store)
self.column = gtk.TreeViewColumn('Parsed files')
self.append_column(self.column)
@@ -36,9 +37,13 @@ class AugFileTree(gtk.TreeView):
# set the cell "text" attribute to column 0 - retrieve text
# from that column in treestore
self.column.add_attribute(self.cell, 'text', 0)
+
+ self.column.add_attribute(self.cell, 'foreground_set', 1)
+ self.column.add_attribute(self.cell, 'foreground', 2)
+
- def addPath(self, p):
- self.tv_store.append(None, [p])
+ def addPath(self, p, available=True):
+ self.tv_store.append(None, [p, not available, '#A2A2A2'])
def clearFiles(self):
self.tv_store.clear()