Author: dmeyer
Date: Sun Oct 29 10:18:04 2006
New Revision: 8503

Modified:
   trunk/ui/src/plugin.py
   trunk/ui/src/plugins/idlebar/__init__.py

Log:
more plugin cleanups

Modified: trunk/ui/src/plugin.py
==============================================================================
--- trunk/ui/src/plugin.py      (original)
+++ trunk/ui/src/plugin.py      Sun Oct 29 10:18:04 2006
@@ -37,7 +37,6 @@
 
 # freevo imports
 import config
-from event import Event
 
 # plugin loader
 from plugin_loader import *
@@ -195,27 +194,8 @@
 RADIO_PLAYER   = 'RADIO_PLAYER'
 VIDEO_PLAYER   = 'VIDEO_PLAYER'
 TV             = 'TV'
-RECORD         = 'RECORD'
 GAMES          = 'GAMES'
 
-def event(name, *args):
-    """
-    create plugin event
-    """
-    return Event('PLUGIN_EVENT %s' % name, *args)
-
-
-def isevent(event):
-    """
-    plugin event parsing
-    """
-    event = str(event)
-    if event[:12] == 'PLUGIN_EVENT':
-        return event[13:]
-    else:
-        return None
-
-
 def mimetype(display_type=None):
     """
     return all MimetypePlugins for the given display_type. If display_type

Modified: trunk/ui/src/plugins/idlebar/__init__.py
==============================================================================
--- trunk/ui/src/plugins/idlebar/__init__.py    (original)
+++ trunk/ui/src/plugins/idlebar/__init__.py    Sun Oct 29 10:18:04 2006
@@ -68,10 +68,6 @@
         plugin.Plugin.__init__(self)
         plugin.register(self, 'idlebar')
 
-        # register for events
-        handler = kaa.notifier.EventHandler(self.eventhandler)
-        handler.register()
-
         # register for signals
         application.signals['application change'].connect(self.app_change)
 
@@ -227,20 +223,6 @@
         return True
 
 
-    def eventhandler(self, event):
-        """
-        catch the IDENTIFY_MEDIA event to redraw the skin (maybe the cd status
-        plugin wants to redraw).
-        """
-        if not self.visible:
-            return True
-
-        if plugin.isevent(event) == 'IDENTIFY_MEDIA':
-            if self.update():
-                gui.display.update()
-        return True
-
-
     def poll(self):
         """
         update the idlebar every 30 secs even if nothing happens

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to