Module: deluge
Branch: master
Commit: bd7bbc4e337f0704c99c9ce2d5cc66b418600980

Author: Pedro Algarvio <pe...@algarvio.me>
Date:   Fri Jul  8 04:07:04 2011 +0100

Add some "now needed" missing imports.

---

 .../AutoAdd/deluge/plugins/autoadd/gtkui.py        |    1 +
 .../Blocklist/deluge/plugins/blocklist/gtkui.py    |    1 +
 .../Execute/deluge/plugins/execute/gtkui.py        |    1 +
 .../Extractor/deluge/plugins/extractor/gtkui.py    |    1 +
 .../FreeSpace/deluge/plugins/freespace/gtkui.py    |   11 ++++-------
 .../deluge/plugins/notifications/gtkui.py          |    1 +
 deluge/plugins/Stats/deluge/plugins/stats/gtkui.py |    1 +
 deluge/plugins/WebUi/deluge/plugins/webui/gtkui.py |    1 +
 8 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/deluge/plugins/AutoAdd/deluge/plugins/autoadd/gtkui.py 
b/deluge/plugins/AutoAdd/deluge/plugins/autoadd/gtkui.py
index 2285798..907af6f 100644
--- a/deluge/plugins/AutoAdd/deluge/plugins/autoadd/gtkui.py
+++ b/deluge/plugins/AutoAdd/deluge/plugins/autoadd/gtkui.py
@@ -38,6 +38,7 @@
 #
 
 import gtk
+import gtk.glade
 import logging
 from deluge.ui.client import client
 from deluge.ui.gtkui import dialogs
diff --git a/deluge/plugins/Blocklist/deluge/plugins/blocklist/gtkui.py 
b/deluge/plugins/Blocklist/deluge/plugins/blocklist/gtkui.py
index 1f9d505..7ac5837 100644
--- a/deluge/plugins/Blocklist/deluge/plugins/blocklist/gtkui.py
+++ b/deluge/plugins/Blocklist/deluge/plugins/blocklist/gtkui.py
@@ -36,6 +36,7 @@
 import logging
 from datetime import datetime
 import gtk
+import gtk.glade
 
 from deluge.ui.client import client
 import deluge.component as component
diff --git a/deluge/plugins/Execute/deluge/plugins/execute/gtkui.py 
b/deluge/plugins/Execute/deluge/plugins/execute/gtkui.py
index e0fb4af..8b9e69c 100644
--- a/deluge/plugins/Execute/deluge/plugins/execute/gtkui.py
+++ b/deluge/plugins/Execute/deluge/plugins/execute/gtkui.py
@@ -34,6 +34,7 @@
 #
 
 import gtk
+import gtk.glade
 import logging
 
 from deluge.ui.client import client
diff --git a/deluge/plugins/Extractor/deluge/plugins/extractor/gtkui.py 
b/deluge/plugins/Extractor/deluge/plugins/extractor/gtkui.py
index 7f19836..06cff1b 100644
--- a/deluge/plugins/Extractor/deluge/plugins/extractor/gtkui.py
+++ b/deluge/plugins/Extractor/deluge/plugins/extractor/gtkui.py
@@ -38,6 +38,7 @@
 #
 
 import gtk
+import gtk.glade
 import logging
 
 from deluge.ui.client import client
diff --git a/deluge/plugins/FreeSpace/deluge/plugins/freespace/gtkui.py 
b/deluge/plugins/FreeSpace/deluge/plugins/freespace/gtkui.py
index dd5dadf..4b10f1f 100644
--- a/deluge/plugins/FreeSpace/deluge/plugins/freespace/gtkui.py
+++ b/deluge/plugins/FreeSpace/deluge/plugins/freespace/gtkui.py
@@ -38,6 +38,7 @@
 #
 
 import gtk
+import gtk.glade
 import logging
 
 from deluge.ui.client import client
@@ -63,8 +64,7 @@ class GtkUI(GtkPluginBase):
         self.downloads_vbox.pack_start(self.prefs, False, True, 0)
 
         component.get("PluginManager").register_hook("on_apply_prefs", 
self.on_apply_prefs)
-        component.get("PluginManager").register_hook("on_show_prefs",
-                                                     self.on_show_prefs)
+        component.get("PluginManager").register_hook("on_show_prefs", 
self.on_show_prefs)
 
         try:
             notifications = component.get("GtkPlugin.Notifications")
@@ -101,11 +101,8 @@ class GtkUI(GtkPluginBase):
         except KeyError:
             pass
 
-        client.deregister_event_handler("PluginEnabledEvent",
-                                        self.__on_plugin_enabled)
-
-        client.deregister_event_handler("PluginDisabledEvent",
-                                        self.__on_plugin_disabled)
+        client.deregister_event_handler("PluginEnabledEvent", 
self.__on_plugin_enabled)
+        client.deregister_event_handler("PluginDisabledEvent", 
self.__on_plugin_disabled)
 
     def on_apply_prefs(self):
         log.debug("applying prefs for FreeSpace")
diff --git a/deluge/plugins/Notifications/deluge/plugins/notifications/gtkui.py 
b/deluge/plugins/Notifications/deluge/plugins/notifications/gtkui.py
index b361f0e..2400c79 100644
--- a/deluge/plugins/Notifications/deluge/plugins/notifications/gtkui.py
+++ b/deluge/plugins/Notifications/deluge/plugins/notifications/gtkui.py
@@ -40,6 +40,7 @@
 import logging
 from os.path import basename
 import gtk
+import gtk.glade
 
 from twisted.internet import defer
 from deluge.ui.client import client
diff --git a/deluge/plugins/Stats/deluge/plugins/stats/gtkui.py 
b/deluge/plugins/Stats/deluge/plugins/stats/gtkui.py
index 4af3e4c..1d5085e 100644
--- a/deluge/plugins/Stats/deluge/plugins/stats/gtkui.py
+++ b/deluge/plugins/Stats/deluge/plugins/stats/gtkui.py
@@ -36,6 +36,7 @@
 #    this exception statement from your version. If you delete this exception
 
 import gtk
+import gtk.glade
 import gobject
 import logging
 from gtk.glade import XML
diff --git a/deluge/plugins/WebUi/deluge/plugins/webui/gtkui.py 
b/deluge/plugins/WebUi/deluge/plugins/webui/gtkui.py
index c5c7586..978ac5f 100644
--- a/deluge/plugins/WebUi/deluge/plugins/webui/gtkui.py
+++ b/deluge/plugins/WebUi/deluge/plugins/webui/gtkui.py
@@ -37,6 +37,7 @@
 #
 
 import gtk
+import gtk.glade
 import logging
 
 from deluge.ui.client import client

-- 
You received this message because you are subscribed to the Google Groups 
"deluge-commit" group.
To post to this group, send email to deluge-commit@googlegroups.com.
To unsubscribe from this group, send email to 
deluge-commit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/deluge-commit?hl=en.

Reply via email to