Author: js Date: 2008-10-02 21:21:44 +0200 (Thu, 02 Oct 2008) New Revision: 10466
Modified: branches/osx_newbuildsys/src/gajim.py Log: Use old idlequeue on OS X.
Modified: branches/osx_newbuildsys/src/gajim.py =================================================================== --- branches/osx_newbuildsys/src/gajim.py 2008-10-02 17:55:53 UTC (rev 10465) +++ branches/osx_newbuildsys/src/gajim.py 2008-10-02 19:21:44 UTC (rev 10466) @@ -2868,7 +2868,7 @@ gajim.idlequeue.process() except: # Otherwise, an exception will stop our loop - if os.name == 'nt': + if os.name == 'nt' or sys.platform == 'darwin': gobject.timeout_add(200, self.process_connections) else: @@ -3120,7 +3120,8 @@
# pygtk2.8+ on win, breaks io_add_watch. # We use good old select.select() - if os.name == 'nt': + # Same for OS X. + if os.name == 'nt' or sys.platform == 'darwin': gajim.idlequeue = idlequeue.SelectIdleQueue() else: # in a nongui implementation, just call: @@ -3290,7 +3291,7 @@ self.last_ftwindow_update = 0
gobject.timeout_add(100, self.autoconnect) - if os.name == 'nt': + if os.name == 'nt' or sys.platform == 'darwin': gobject.timeout_add(200, self.process_connections) else: gobject.timeout_add_seconds(2, self.process_connections)