Update of /cvsroot/freevo/freevo/src/plugins
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25051/src/plugins

Modified Files:
        rom_drives.py 
Log Message:
use Thread from kaa.notifier

Index: rom_drives.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/plugins/rom_drives.py,v
retrieving revision 1.88
retrieving revision 1.89
diff -C2 -d -r1.88 -r1.89
*** rom_drives.py       25 Jun 2005 08:52:27 -0000      1.88
--- rom_drives.py       28 Jun 2005 16:03:35 -0000      1.89
***************
*** 55,59 ****
  import thread
  
! import notifier
  
  # freevo imports
--- 55,60 ----
  import thread
  
! # kaa imports
! import kaa.notifier
  
  # freevo imports
***************
*** 64,68 ****
  import util
  from util.ioctl import ioctl
- import util.fthread
  import mediadb
  
--- 65,68 ----
***************
*** 294,298 ****
          # Start tray moving thread. This thread will release the lock
          # when the tray is moved
!         util.fthread.Thread(self.__move_tray_thread, dir, pop).start()
  
  
--- 294,298 ----
          # Start tray moving thread. This thread will release the lock
          # when the tray is moved
!         kaa.notifier.Thread(self.__move_tray_thread, dir, pop).start()
  
  
***************
*** 335,342 ****
          if watcher and not self.tray_open:
              # call watcher for update from main
!             util.fthread.call_from_main(watcher.poll)
          if popup:
              # delete popup (from main)
!             util.fthread.call_from_main(popup.destroy)
  
  
--- 335,342 ----
          if watcher and not self.tray_open:
              # call watcher for update from main
!             kaa.notifier.call_from_main(watcher.poll)
          if popup:
              # delete popup (from main)
!             kaa.notifier.call_from_main(popup.destroy)
  
  
***************
*** 405,409 ****
              os.close(fd)
              # send media changed event and unlock the media
!             util.fthread.call_from_main(self.send_event)
              return False
  
--- 405,409 ----
              os.close(fd)
              # send media changed event and unlock the media
!             kaa.notifier.call_from_main(self.send_event)
              return False
  
***************
*** 421,425 ****
          os.close(fd)
          # call identity from main loop
!         util.fthread.call_from_main(self.identify)
          # Note: the lock is still in place. It will be released by
          # identify later from the main loop when everything is done.
--- 421,425 ----
          os.close(fd)
          # call identity from main loop
!         kaa.notifier.call_from_main(self.identify)
          # Note: the lock is still in place. It will be released by
          # identify later from the main loop when everything is done.
***************
*** 714,718 ****
                  # solution because it will create a thread for each drive
                  # every 2 seconds, but it works well.
!                 util.fthread.Thread(media.check_status_thread).start()
          return True
  
--- 714,718 ----
                  # solution because it will create a thread for each drive
                  # every 2 seconds, but it works well.
!                 kaa.notifier.Thread(media.check_status_thread).start()
          return True
  



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to