packages bittorrent-4.4.0-threads-warning.patch
      Pages: < 1 >  DOWNLOAD      
--- BitTorrent-4.4.0/bittorrent.py	2008-04-08 16:01:30.000000000 +0100
+++ BitTorrent-4.4.0/bittorrent.py	2008-04-08 16:02:50.000000000 +0100
@@ -2742,7 +2742,7 @@
         if self.config['start_minimized']:
             self.mainwindow.iconify()
        
-        gtk.threads_enter()
+        gtk.gdk.threads_enter()
 
         self.mainwindow.set_border_width(0)
 
@@ -2942,7 +2942,7 @@
 
         self.nag()
         
-        gtk.threads_leave()
+        gtk.gdk.threads_leave()
 
     def window_event(self, widget, event, *args):
         if event.changed_mask == gtk.gdk.WINDOW_STATE_ICONIFIED:
@@ -3758,14 +3758,14 @@
         self.mainwindow = None
         self.started = 0
         
-        gtk.threads_init()
+        gtk.gdk.threads_init()
 
     def set_mainwindow(self, mainwindow):
         self.mainwindow = mainwindow
 
     def run(self):
         self.mainwindow.traythread.start()
-        gtk.threads_enter()        
+        gtk.gdk.threads_enter()        
 
         if self.mainwindow:
             self.mainwindow.ssbutton.set_paused(self.mainwindow.config['pause'])
@@ -3777,12 +3777,12 @@
             self.started = 1
             gtk.main() 
         except KeyboardInterrupt:
-            gtk.threads_leave()
+            gtk.gdk.threads_leave()
             if self.mainwindow:
                 self.mainwindow.torrentqueue.set_done()
             raise
         
-        gtk.threads_leave()
+        gtk.gdk.threads_leave()
 
     def quit(self):
         if self.mainwindow: 
--- BitTorrent-4.4.0/BitTorrent/GUI.py	2008-04-08 16:03:22.000000000 +0100
+++ BitTorrent-4.4.0/BitTorrent/GUI.py	2008-04-08 16:03:52.000000000 +0100
@@ -25,9 +25,9 @@
 from BitTorrent.platform import image_root, read_language_file, write_language_file
 
 def lock_wrap(function, *args):
-    gtk.threads_enter()
+    gtk.gdk.threads_enter()
     function(*args)
-    gtk.threads_leave()
+    gtk.gdk.threads_leave()
 
 def gtk_wrap(function, *args):
     gobject.idle_add(lock_wrap, function, *args)
@@ -377,10 +377,10 @@
 
     def scroll_and_wait(self, amount, lock_held):
         if not lock_held:
-            gtk.threads_enter()
+            gtk.gdk.threads_enter()
         self.scroll_by(0, amount)
         if not lock_held:
-            gtk.threads_leave()
+            gtk.gdk.threads_leave()
         if self.vscrolltimeout is not None:
             gobject.source_remove(self.vscrolltimeout)
         self.vscrolltimeout = gobject.timeout_add(100, self.scroll_and_wait, amount, False)