[kupfer] plugin.session*: Edit names, change icon



commit be5f0f84f4348a39be9c84260db6dcd7fb2b379e
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Sun Dec 6 17:23:48 2009 +0100

    plugin.session*: Edit names, change icon
    
    This enables us to finally get rid of the nondescriptive "Special
    Items" catalog that I never liked.

 kupfer/plugin/session_gnome.py   |    4 +++-
 kupfer/plugin/session_support.py |    7 ++-----
 kupfer/plugin/session_xfce.py    |    4 +++-
 3 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/kupfer/plugin/session_gnome.py b/kupfer/plugin/session_gnome.py
index bc2fa00..1f02bff 100644
--- a/kupfer/plugin/session_gnome.py
+++ b/kupfer/plugin/session_gnome.py
@@ -1,6 +1,6 @@
 from kupfer.plugin import session_support as support
 
-__kupfer_name__ = _("Gnome Session Manager")
+__kupfer_name__ = _("Gnome Session Management")
 __kupfer_sources__ = ("GnomeItemsSource", )
 __description__ = _("Special items and actions for Gnome environment")
 __version__ = "2009-12-05"
@@ -13,6 +13,8 @@ SHUTDOWN_CMD = ("gnome-panel-logout --shutdown",
 LOCKSCREEN_CMD = ("gnome-screensaver-command --lock", "xdg-screensaver lock")
 
 class GnomeItemsSource (support.CommonSource):
+	def __init__(self):
+		support.CommonSource.__init__(self, _("Gnome Session Management"))
 	def get_items(self):
 		return (
 			support.Logout(LOGOUT_CMD),
diff --git a/kupfer/plugin/session_support.py b/kupfer/plugin/session_support.py
index 10a29e6..5dce99d 100644
--- a/kupfer/plugin/session_support.py
+++ b/kupfer/plugin/session_support.py
@@ -61,14 +61,11 @@ class LockScreen (RunnableLeaf):
 		return "system-lock-screen"
 
 class CommonSource (Source):
-	def __init__(self, name=_("Special Items")):
+	def __init__(self, name):
 		super(CommonSource, self).__init__(name)
 	def is_dynamic(self):
 		return True
-	def get_description(self):
-		return _("Items and special actions")
 	def get_icon_name(self):
-		return "applications-other"
+		return "system-shutdown"
 	def provides(self):
-		yield SpecialLocation
 		yield RunnableLeaf
diff --git a/kupfer/plugin/session_xfce.py b/kupfer/plugin/session_xfce.py
index c35db3d..e4a3f79 100644
--- a/kupfer/plugin/session_xfce.py
+++ b/kupfer/plugin/session_xfce.py
@@ -2,7 +2,7 @@
 
 from kupfer.plugin import session_support as support
 
-__kupfer_name__ = _("XFCE Session Manager")
+__kupfer_name__ = _("XFCE Session Management")
 __kupfer_sources__ = ("XfceItemsSource", )
 __description__ = _("Special items and actions for XFCE environment")
 __version__ = "2009-12-05"
@@ -14,6 +14,8 @@ LOCKSCREEN_CMD = ("xdg-screensaver lock", )
 
 
 class XfceItemsSource (support.CommonSource):
+	def __init__(self):
+		support.CommonSource.__init__(self, _("XFCE Session Management"))
 	def get_items(self):
 		return (
 			support.Logout(LOGOUT_CMD),



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]