summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-05-15 17:23:51 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-05-15 17:23:51 +0200
commitd383bd5fcc1a3e657c83c6f042b737925d193297 (patch)
tree9973be6f74a339d4a36d9de1e7d5be4392d0859b
parent88d24a170b7868c0e518b88acc245416e44b4a88 (diff)
downloadportato-d383bd5fcc1a3e657c83c6f042b737925d193297.tar.gz
portato-d383bd5fcc1a3e657c83c6f042b737925d193297.tar.bz2
portato-d383bd5fcc1a3e657c83c6f042b737925d193297.zip
Disallow enabling expanded useflags - only their specific values
Diffstat (limited to '')
-rw-r--r--portato/gui/windows/main.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py
index a0127e0..fd327a4 100644
--- a/portato/gui/windows/main.py
+++ b/portato/gui/windows/main.py
@@ -391,9 +391,6 @@ class PackageTable:
flag = store[path][2]
pkg = self.pkg
- if pkg.use_expanded(flag): # ignore expanded flags
- return False
-
store[path][0] = not store[path][0]
prefix = ""
if not store[path][0]:
@@ -953,7 +950,7 @@ class MainWindow (Window):
tCell = gtk.CellRendererToggle()
tCell.set_property("activatable", True)
tCell.connect("toggled", self.cb_use_flag_toggled)
- useList.append_column(gtk.TreeViewColumn(_("Enabled"), tCell, active = 0))
+ useList.append_column(gtk.TreeViewColumn(_("Enabled"), tCell, active = 0, activatable = 4))
useList.append_column(gtk.TreeViewColumn(_("Installed"), iCell, active = 1))
useList.append_column(gtk.TreeViewColumn(_("Flag"), cell, text = 2))
useList.append_column(gtk.TreeViewColumn(_("Description"), cell, markup = 3))
@@ -964,7 +961,7 @@ class MainWindow (Window):
return useList
def fill_use_list(self, pkg):
- store = gtk.TreeStore(bool, bool, str, str)
+ store = gtk.TreeStore(bool, bool, str, str, bool)
pkg_flags = pkg.get_iuse_flags()
pkg_flags.sort()
@@ -979,7 +976,7 @@ class MainWindow (Window):
exp = pkg.use_expanded(use, suggest = actual_exp)
if exp is not None:
if exp != actual_exp:
- actual_exp_it = store.append(None, [None, None, exp, "<i>%s</i>" % _("This is an expanded use flag and cannot be selected")])
+ actual_exp_it = store.append(None, [None, None, exp, "<i>%s</i>" % _("This is an expanded use flag and cannot be selected"), False])
actual_exp = exp
else:
actual_exp_it = None
@@ -987,7 +984,7 @@ class MainWindow (Window):
enabled = use in euse
installed = use in instuse
- store.append(actual_exp_it, [enabled, installed, use, system.get_use_desc(use, pkg.get_cp())])
+ store.append(actual_exp_it, [enabled, installed, use, system.get_use_desc(use, pkg.get_cp()), True])
return store