[kupfer] plugin.window: Move wnck import to after plugin info variables
- From: Ulrik Sverdrup <usverdrup src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [kupfer] plugin.window: Move wnck import to after plugin info variables
- Date: Sun, 11 Oct 2009 21:49:20 +0000 (UTC)
commit d7c4dcfd89bc5a65895c7a5ab08aa15916578ebe
Author: Ulrik Sverdrup <ulrik sverdrup gmail com>
Date: Sun Oct 11 23:10:06 2009 +0200
plugin.window: Move wnck import to after plugin info variables
"Critical" imports have to be imported past the plugin information
variables in Kupfer, else the plugin can't be shown if the import
fails.
kupfer/plugin/windows.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/kupfer/plugin/windows.py b/kupfer/plugin/windows.py
index d2f2500..39e3eb1 100644
--- a/kupfer/plugin/windows.py
+++ b/kupfer/plugin/windows.py
@@ -1,6 +1,5 @@
import gobject
import gtk
-import wnck
from kupfer.objects import Leaf, Action, Source
@@ -10,6 +9,10 @@ __description__ = _("All windows on all workspaces")
__version__ = ""
__author__ = "Ulrik Sverdrup <ulrik sverdrup gmail com>"
+# "Critical" imports have to be imported past the plugin information
+# variables in Kupfer, else the plugin can't be shown if the import fails
+import wnck
+
class WindowLeaf (Leaf):
def get_actions(self):
win = self.object
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]