diff options
author | necoro <> | 2007-07-13 04:38:04 +0000 |
---|---|---|
committer | necoro <> | 2007-07-13 04:38:04 +0000 |
commit | 0a8d3b8add548efbc44a67c3eb1223ff94aaffc5 (patch) | |
tree | 3def310b4ee8657ae2b9356bf4ce19e240358cf6 /portato/gui/gtk/windows.py | |
parent | fc6d232a9357211a44dad3300ff64571620aa1bf (diff) | |
download | portato-0a8d3b8add548efbc44a67c3eb1223ff94aaffc5.tar.gz portato-0a8d3b8add548efbc44a67c3eb1223ff94aaffc5.tar.bz2 portato-0a8d3b8add548efbc44a67c3eb1223ff94aaffc5.zip |
fixes
Diffstat (limited to '')
-rw-r--r-- | portato/gui/gtk/windows.py | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/portato/gui/gtk/windows.py b/portato/gui/gtk/windows.py index ac87b01..51179c3 100644 --- a/portato/gui/gtk/windows.py +++ b/portato/gui/gtk/windows.py @@ -510,7 +510,18 @@ class PackageTable: self.comboVB.remove(c) self.comboVB.pack_start(self.vCombo) - # the label (must be here, because it depends on the combo box) + if not self.queue or not self.doEmerge: + self.emergeBtn.set_sensitive(False) + self.unmergeBtn.set_sensitive(False) + + # current status + self.cb_combo_changed(self.vCombo) + self.table.show_all() + + def hide (self): + self.table.hide_all() + + def set_desc_label (self): desc = self.actual_package().get_package_settings("DESCRIPTION").replace("&","&") if not desc: desc = "<no description>" @@ -527,17 +538,6 @@ class PackageTable: self.descLabel.set_use_markup(use_markup) self.descLabel.set_label(desc) - if not self.queue or not self.doEmerge: - self.emergeBtn.set_sensitive(False) - self.unmergeBtn.set_sensitive(False) - - # current status - self.cb_combo_changed(self.vCombo) - self.table.show_all() - - def hide (self): - self.table.hide_all() - def fill_use_list(self, store): """Fills a given ListStore with the use-flag data. @@ -644,6 +644,8 @@ class PackageTable: """Callback for the changed ComboBox. It then rebuilds the useList and the checkboxes.""" + self.set_desc_label() + # remove old useList w = self.useListScroll.get_child() if w: |