Add some "now needed" missing imports.

This commit is contained in:
Pedro Algarvio 2011-07-08 04:07:04 +01:00
parent 312a57aa50
commit bd7bbc4e33
8 changed files with 11 additions and 7 deletions

View File

@ -38,6 +38,7 @@
# #
import gtk import gtk
import gtk.glade
import logging import logging
from deluge.ui.client import client from deluge.ui.client import client
from deluge.ui.gtkui import dialogs from deluge.ui.gtkui import dialogs

View File

@ -36,6 +36,7 @@
import logging import logging
from datetime import datetime from datetime import datetime
import gtk import gtk
import gtk.glade
from deluge.ui.client import client from deluge.ui.client import client
import deluge.component as component import deluge.component as component

View File

@ -34,6 +34,7 @@
# #
import gtk import gtk
import gtk.glade
import logging import logging
from deluge.ui.client import client from deluge.ui.client import client

View File

@ -38,6 +38,7 @@
# #
import gtk import gtk
import gtk.glade
import logging import logging
from deluge.ui.client import client from deluge.ui.client import client

View File

@ -38,6 +38,7 @@
# #
import gtk import gtk
import gtk.glade
import logging import logging
from deluge.ui.client import client from deluge.ui.client import client
@ -63,8 +64,7 @@ class GtkUI(GtkPluginBase):
self.downloads_vbox.pack_start(self.prefs, False, True, 0) 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_apply_prefs", self.on_apply_prefs)
component.get("PluginManager").register_hook("on_show_prefs", component.get("PluginManager").register_hook("on_show_prefs", self.on_show_prefs)
self.on_show_prefs)
try: try:
notifications = component.get("GtkPlugin.Notifications") notifications = component.get("GtkPlugin.Notifications")
@ -101,11 +101,8 @@ class GtkUI(GtkPluginBase):
except KeyError: except KeyError:
pass pass
client.deregister_event_handler("PluginEnabledEvent", client.deregister_event_handler("PluginEnabledEvent", self.__on_plugin_enabled)
self.__on_plugin_enabled) client.deregister_event_handler("PluginDisabledEvent", self.__on_plugin_disabled)
client.deregister_event_handler("PluginDisabledEvent",
self.__on_plugin_disabled)
def on_apply_prefs(self): def on_apply_prefs(self):
log.debug("applying prefs for FreeSpace") log.debug("applying prefs for FreeSpace")

View File

@ -40,6 +40,7 @@
import logging import logging
from os.path import basename from os.path import basename
import gtk import gtk
import gtk.glade
from twisted.internet import defer from twisted.internet import defer
from deluge.ui.client import client from deluge.ui.client import client

View File

@ -36,6 +36,7 @@
# this exception statement from your version. If you delete this exception # this exception statement from your version. If you delete this exception
import gtk import gtk
import gtk.glade
import gobject import gobject
import logging import logging
from gtk.glade import XML from gtk.glade import XML

View File

@ -37,6 +37,7 @@
# #
import gtk import gtk
import gtk.glade
import logging import logging
from deluge.ui.client import client from deluge.ui.client import client