Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7273/src
Modified Files:
plugin.py
Log Message:
remove poll_menu_only
Index: plugin.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/plugin.py,v
retrieving revision 1.95
retrieving revision 1.96
diff -C2 -d -r1.95 -r1.96
*** plugin.py 16 Jul 2005 10:07:23 -0000 1.95
--- plugin.py 16 Jul 2005 11:40:28 -0000 1.96
***************
*** 39,43 ****
import config
from event import Event
- import application.eventhandler
# plugin loader
--- 39,42 ----
***************
*** 148,152 ****
Plugin.__init__(self)
self.poll_interval = 100 # poll every x milliseconds
- self.poll_menu_only = True # poll only when menu is active
self.events = [] # events to register to ([] == all)
--- 147,150 ----
***************
*** 159,172 ****
- def __poll(self):
- """
- wrapper for the poll function
- """
- if self.poll_menu_only and not application.eventhandler.is_menu():
- return True
- self.poll()
- return True
-
-
def plugin_activate(self):
"""
--- 157,160 ----
***************
*** 176,180 ****
if self.__class__.poll != DaemonPlugin.poll:
# plugin has a self defined poll function, register it
! self.__timer =
kaa.notifier.Timer(self.__poll).start(self.poll_interval)
if self.__class__.eventhandler != DaemonPlugin.eventhandler:
--- 164,169 ----
if self.__class__.poll != DaemonPlugin.poll:
# plugin has a self defined poll function, register it
! self.__timer = kaa.notifier.Timer(self.poll)
! self.__timer.start(self.poll_interval)
if self.__class__.eventhandler != DaemonPlugin.eventhandler:
-------------------------------------------------------
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