Author: duncan
Date: Mon May 14 18:43:47 2007
New Revision: 9575

Modified:
   branches/rel-1/freevo/src/audio/plugins/detach.py

Log:
[ 1636457 ] Press ENTER while playing music
Fix applied to allow DETACH_KEY to be defined in local_conf.py


Modified: branches/rel-1/freevo/src/audio/plugins/detach.py
==============================================================================
--- branches/rel-1/freevo/src/audio/plugins/detach.py   (original)
+++ branches/rel-1/freevo/src/audio/plugins/detach.py   Mon May 14 18:43:47 2007
@@ -44,12 +44,19 @@
     def __init__(self):
         _debug_('__init__(self)', 2)
         plugin.MainMenuPlugin.__init__(self)
-        config.EVENTS['audio']['DISPLAY'] = Event(FUNCTION_CALL, 
arg=self.detach)
-        #config.EVENTS['audio']['EXIT'] = Event(FUNCTION_CALL, arg=self.detach)
+        config.EVENTS['audio'][config.DETACH_KEY] = Event(FUNCTION_CALL, 
arg=self.detach)
         self.show_item = menu.MenuItem(_('Show player'), action=self.show)
         self.show_item.type = 'detached_player'
 
 
+    def config(self):
+        '''config is called automatically,
+        freevo plugins -i audio.detach returns the info
+        '''
+        return [
+            ('DETACH_KEY', 'DISPLAY', 'Event to activate the detach bar, 
DISPLAY, ENTER, EXIT'),
+        ]
+
     def detach(self):
         _debug_('detach(self)', 2)
         gui  = audio.player.get()

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to