mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-20 07:08:30 +00:00
Removed problematic code. GTK2Reactor takes care of all that.
This commit is contained in:
parent
d44f59a0e7
commit
249398489e
@ -205,10 +205,6 @@ class GtkUI(object):
|
|||||||
self.queuedtorrents = QueuedTorrents()
|
self.queuedtorrents = QueuedTorrents()
|
||||||
self.ipcinterface = IPCInterface(args)
|
self.ipcinterface = IPCInterface(args)
|
||||||
|
|
||||||
# Initialize gdk threading
|
|
||||||
gtk.gdk.threads_init()
|
|
||||||
gobject.threads_init()
|
|
||||||
|
|
||||||
# We make sure that the UI components start once we get a core URI
|
# We make sure that the UI components start once we get a core URI
|
||||||
client.set_disconnect_callback(self.__on_disconnect)
|
client.set_disconnect_callback(self.__on_disconnect)
|
||||||
|
|
||||||
@ -238,11 +234,8 @@ class GtkUI(object):
|
|||||||
rpc_stats.start(10)
|
rpc_stats.start(10)
|
||||||
|
|
||||||
reactor.callWhenRunning(self._on_reactor_start)
|
reactor.callWhenRunning(self._on_reactor_start)
|
||||||
# Start the gtk main loop
|
reactor.addSystemEventTrigger("before", "shutdown", self.shutdown)
|
||||||
gtk.gdk.threads_enter()
|
|
||||||
reactor.run()
|
reactor.run()
|
||||||
self.shutdown()
|
|
||||||
gtk.gdk.threads_leave()
|
|
||||||
|
|
||||||
def shutdown(self, *args, **kwargs):
|
def shutdown(self, *args, **kwargs):
|
||||||
log.debug("gtkui shutting down..")
|
log.debug("gtkui shutting down..")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user