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

Modified Files:
        eventhandler.py 
Log Message:
move idle time handling to mbus plugin

Index: eventhandler.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/application/eventhandler.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** eventhandler.py     16 Jul 2005 11:49:34 -0000      1.3
--- eventhandler.py     16 Jul 2005 13:38:34 -0000      1.4
***************
*** 80,91 ****
  
  
- def idle_time():
-     """
-     Return the idle time of Freevo. If an application is running, the idle
-     time is always 0.
-     """
-     return get_singleton().idle_time()
- 
-     
  def append(application):
      """
--- 80,83 ----
***************
*** 138,167 ****
          self.applications = []
          self.stack_change = None
-         # idle timer variable
-         self.__idle_time = 0
-         # callback to inherit idle time every minute
-         kaa.notifier.Timer(self.__update_idle_time).start(60000)
          # callback for events
          kaa.notifier.EventHandler(self.handle).register()
          
  
-     def __update_idle_time(self):
-         """
-         Notifier callback to inherit the idle time
-         """
-         self.__idle_time += 1
-         return True
-     
- 
-     def idle_time(self):
-         """
-         Return the idle time of Freevo. If an application is running, the idle
-         time is always 0.
-         """
-         if len(self.applications) > 1:
-             return 0
-         return self.__idle_time
- 
-         
      def set_focus(self):
          """
--- 130,137 ----
***************
*** 259,265 ****
              t1 = time.clock()
  
-         # each event resets the idle time
-         self.__idle_time = 0
- 
          try:
              if event == FUNCTION_CALL:
--- 229,232 ----



-------------------------------------------------------
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