[kupfer] plugin.kupfer_plugins: Indicate enabled/disabled in descripition
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] plugin.kupfer_plugins: Indicate enabled/disabled in descripition
- Date: Wed, 28 Oct 2009 21:32:04 +0000 (UTC)
commit 61ea31e76c029d8296b21a87ebe467c40498a113
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Wed Oct 28 21:14:37 2009 +0100
plugin.kupfer_plugins: Indicate enabled/disabled in descripition
kupfer/plugin/kupfer_plugins.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/plugin/kupfer_plugins.py b/kupfer/plugin/kupfer_plugins.py
index 84b8f03..ba0e5f7 100644
--- a/kupfer/plugin/kupfer_plugins.py
+++ b/kupfer/plugin/kupfer_plugins.py
@@ -13,7 +13,10 @@ __author__ = "Ulrik Sverdrup <ulrik sverdrup gmail com>"
class Plugin (Leaf):
def get_description(self):
- return self.object["description"]
+ setctl = settings.GetSettingsController()
+ enabled = setctl.get_plugin_enabled(self.object["name"])
+ return _("%s (%s)") % (self.object["description"],
+ _("enabled") if enabled else _("disabled"))
def get_icon_name(self):
return "package"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]