From fdc8ab4222e781544cba285564b5bb368b9734a1 Mon Sep 17 00:00:00 2001 From: necoro <> Date: Mon, 14 May 2007 19:30:24 +0000 Subject: added the display of the masking reason --- portato/gui/gtk/windows.py | 1 + portato/gui/qt/windows.py | 3 +++ 2 files changed, 4 insertions(+) (limited to 'portato/gui') diff --git a/portato/gui/gtk/windows.py b/portato/gui/gtk/windows.py index 79e24b4..c77787a 100644 --- a/portato/gui/gtk/windows.py +++ b/portato/gui/gtk/windows.py @@ -581,6 +581,7 @@ class PackageTable: self.emergeBtn.set_sensitive(True) self.installedCheck.set_active(pkg.is_installed()) + gtk.Tooltips().set_tip(self.maskedCheck, pkg.get_masking_reason()) # this returns None if it is not masked =) if pkg.is_masked(use_changed = False) and not pkg.is_masked(use_changed = True): self.maskedCheck.set_label("(Masked)") self.maskedCheck.get_child().set_use_markup(True) diff --git a/portato/gui/qt/windows.py b/portato/gui/qt/windows.py index 904b07f..31addc3 100644 --- a/portato/gui/qt/windows.py +++ b/portato/gui/qt/windows.py @@ -545,6 +545,9 @@ class PackageDetails: self.window.pkgEmergeBtn.setEnabled(True) self.window.installedCheck.setCheckState(qCheck(pkg.is_installed())) + masking_reason = pkg.get_masking_reason() or "" # set to "" if the reason is None + self.window.maskedCheck.setToolTip(masking_reason) + if pkg.is_masked(use_changed = False) and not pkg.is_masked(use_changed = True): self.window.maskedCheck.setText("(Masked)") else: -- cgit v1.2.3-70-g09d2