diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-02-02 12:47:49 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-02-02 12:47:49 +0100 |
commit | a80ff9994c49b3aaba7d3f0bbf6317107fcf39bb (patch) | |
tree | 1ebe1c0b4ca15b4826adf8e930f0cd945510c2bb /portato/gui/windows | |
parent | 7d7cccefa1373570791bde516dd90f5055888481 (diff) | |
download | portato-a80ff9994c49b3aaba7d3f0bbf6317107fcf39bb.tar.gz portato-a80ff9994c49b3aaba7d3f0bbf6317107fcf39bb.tar.bz2 portato-a80ff9994c49b3aaba7d3f0bbf6317107fcf39bb.zip |
Do not show categories which only hold disabled packages
Diffstat (limited to '')
-rw-r--r-- | portato/gui/windows/main.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py index 472ddf0..9f3c123 100644 --- a/portato/gui/windows/main.py +++ b/portato/gui/windows/main.py @@ -746,18 +746,18 @@ class MainWindow (Window): store.clear() if name: - for cat, pkg, is_inst, disabled in self.db.get_cat(name, self.sortPkgListByName): - if disabled: - warning(_("Package '%s/%s' is disabled."), cat, pkg) + for pkg in self.db.get_cat(name, self.sortPkgListByName): + if pkg.disabled: + warning(_("Package '%s/%s' is disabled."), pkg.cat, pkg.pkg) continue - if is_inst: + if pkg.inst: icon = self.icons["installed"] elif not self.showAll: continue # ignore not installed packages else: icon = None - store.append([icon, pkg, cat]) + store.append([icon, pkg.pkg, pkg.cat]) def build_version_list (self): store = gtk.ListStore(gtk.gdk.Pixbuf, str, str) |