From 033afe95ff12e0591d544867dc491de28ad93431 Mon Sep 17 00:00:00 2001 From: Christopher Harvey Date: Wed, 4 Aug 2010 13:09:36 -0400 Subject: Added a check to see if a module exists and sets the foregound colour for that file accordingly. --- src/ventoo/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-65-gdbad