[kupfer] windows: Hide current workspace in Move To... action
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] windows: Hide current workspace in Move To... action
- Date: Fri, 8 Jan 2010 15:47:56 +0000 (UTC)
commit 143b4c57ff8f82a14f6b0dd35cce4fc86c4ca5a5
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Fri Jan 8 15:59:25 2010 +0100
windows: Hide current workspace in Move To... action
kupfer/plugin/windows.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/kupfer/plugin/windows.py b/kupfer/plugin/windows.py
index e7eed20..cfbe9b5 100644
--- a/kupfer/plugin/windows.py
+++ b/kupfer/plugin/windows.py
@@ -116,6 +116,10 @@ class WindowMoveToWorkspace (Action):
def object_source(self, for_item=None):
return WorkspacesSource()
+ def valid_object(self, iobj, for_item):
+ window = for_item.object
+ return not window.is_on_workspace(iobj.object)
+
def get_icon_name(self):
return "forward"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]