mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-09 11:12:06 +00:00
Add some "now needed" missing imports.
This commit is contained in:
parent
312a57aa50
commit
bd7bbc4e33
@ -38,6 +38,7 @@
|
||||
#
|
||||
|
||||
import gtk
|
||||
import gtk.glade
|
||||
import logging
|
||||
from deluge.ui.client import client
|
||||
from deluge.ui.gtkui import dialogs
|
||||
|
@ -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
|
||||
|
@ -34,6 +34,7 @@
|
||||
#
|
||||
|
||||
import gtk
|
||||
import gtk.glade
|
||||
import logging
|
||||
|
||||
from deluge.ui.client import client
|
||||
|
@ -38,6 +38,7 @@
|
||||
#
|
||||
|
||||
import gtk
|
||||
import gtk.glade
|
||||
import logging
|
||||
|
||||
from deluge.ui.client import client
|
||||
|
@ -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")
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -37,6 +37,7 @@
|
||||
#
|
||||
|
||||
import gtk
|
||||
import gtk.glade
|
||||
import logging
|
||||
|
||||
from deluge.ui.client import client
|
||||
|
Loading…
x
Reference in New Issue
Block a user