Author: andar
Revision: 5260
Log:
Remove dep on gobject and replace with twisted.reactor.callLater
Diff:
Modified: trunk/deluge/ui/tracker_icons.py
===================================================================
--- trunk/deluge/ui/tracker_icons.py 2009-05-12 16:27:41 UTC (rev 5259)
+++ trunk/deluge/ui/tracker_icons.py 2009-05-12 16:57:35 UTC (rev 5260)
@@ -25,7 +25,8 @@
import threading
-import gobject
+from twisted.internet import reactor
+
from urllib import urlopen
from deluge.log import LOG as log
from deluge.common import get_pixmap
@@ -148,7 +149,7 @@
self.images[tracker_host] = filename
if callback:
- gobject.idle_add(callback, filename)
+ reactor.callLater(0, callback, filename)
def get_async(self, tracker_host, callback):
if tracker_host in self.images:
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en
-~----------~----~----~----~------~----~------~--~---