diff options
author | Christopher Harvey <chris@basementcode.com> | 2010-08-04 13:09:36 -0400 |
---|---|---|
committer | Christopher Harvey <chris@basementcode.com> | 2010-08-04 13:09:36 -0400 |
commit | 033afe95ff12e0591d544867dc491de28ad93431 (patch) | |
tree | e2b1840c20afb2d9a8bcd23c04c710aced2c38bc | |
parent | Added storage to AugFileTree for the foreground colour of file names. addPath... (diff) | |
download | ventoo-033afe95ff12e0591d544867dc491de28ad93431.tar.gz ventoo-033afe95ff12e0591d544867dc491de28ad93431.tar.bz2 ventoo-033afe95ff12e0591d544867dc491de28ad93431.zip |
Added a check to see if a module exists and sets the foregound colour for that file accordingly.
-rw-r--r-- | src/ventoo/main.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ventoo/main.py b/src/ventoo/main.py index d6435f1..2900c9b 100644 --- a/src/ventoo/main.py +++ b/src/ventoo/main.py @@ -254,7 +254,8 @@ class MainWindow(gtk.Window): self.files_tv.clearFiles() fileList = augeas_utils.accumulateFiles(self.a) for f in fileList: - self.files_tv.addPath(f) + ex = VentooModule.moduleExists(augeas_utils.getVentooModuleNameFromSysPath(self.a, osp.join('/', f))) + self.files_tv.addPath(f, ex) """ Given an augeas state and a ventoo module update the edit model to show |