summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPedro Algarvio <pedro@algarvio.me>2011-07-08 04:07:04 +0100
committerPedro Algarvio <pedro@algarvio.me>2011-07-08 04:07:04 +0100
commitbd7bbc4e337f0704c99c9ce2d5cc66b418600980 (patch)
treeb1040f25b9fb193762bb9a4861390a704eac2218
parent312a57aa5009c95bec46d787c5e5e4bab60bd8d7 (diff)
downloaddeluge-bd7bbc4e337f0704c99c9ce2d5cc66b418600980.tar.gz
deluge-bd7bbc4e337f0704c99c9ce2d5cc66b418600980.tar.bz2
deluge-bd7bbc4e337f0704c99c9ce2d5cc66b418600980.zip
Add some "now needed" missing imports.
-rw-r--r--deluge/plugins/AutoAdd/deluge/plugins/autoadd/gtkui.py1
-rw-r--r--deluge/plugins/Blocklist/deluge/plugins/blocklist/gtkui.py1
-rw-r--r--deluge/plugins/Execute/deluge/plugins/execute/gtkui.py1
-rw-r--r--deluge/plugins/Extractor/deluge/plugins/extractor/gtkui.py1
-rw-r--r--deluge/plugins/FreeSpace/deluge/plugins/freespace/gtkui.py11
-rw-r--r--deluge/plugins/Notifications/deluge/plugins/notifications/gtkui.py1
-rw-r--r--deluge/plugins/Stats/deluge/plugins/stats/gtkui.py1
-rw-r--r--deluge/plugins/WebUi/deluge/plugins/webui/gtkui.py1
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 2285798db..907af6f19 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 1f9d505f2..7ac58370f 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 e0fb4af49..8b9e69c6d 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 7f1983617..06cff1b6b 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 dd5dadfe1..4b10f1fe3 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 b361f0ee1..2400c7966 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 4af3e4c4a..1d5085e1d 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 c5c7586c7..978ac5fe4 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