[kupfer] windows: Tell about active workspace in its description



commit ba4838d86ccfaf0fe306e7143a26e04a66cff645
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date:   Wed Mar 23 00:45:23 2011 +0100

    windows: Tell about active workspace in its description

 kupfer/plugin/windows.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/plugin/windows.py b/kupfer/plugin/windows.py
index ab3aa02..37e1470 100644
--- a/kupfer/plugin/windows.py
+++ b/kupfer/plugin/windows.py
@@ -240,6 +240,12 @@ class Workspace (Leaf):
 		return self.object.get_number()
 	def get_icon_name(self):
 		return "gnome-window-manager"
+	def get_description(self):
+		screen = wnck.screen_get_default()
+		if screen:
+			wspc = screen.get_active_workspace()
+			if wspc == self.object:
+				return _("Active workspace")
 
 class ActivateWorkspace (Action):
 	rank_adjust = 5



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