[MPlayer-cvslog] r19496 - in trunk/libmenu: menu.h menu_filesel.c

Benjamin Zores ben at geexbox.org
Tue Aug 22 22:03:57 CEST 2006


On Tue, 22 Aug 2006 21:59:53 +0200 (CEST)
ben <subversion at mplayerhq.hu> wrote:

> Author: ben
> Date: Tue Aug 22 21:59:53 2006
> New Revision: 19496
> 
> Modified:
>    trunk/libmenu/menu.h
>    trunk/libmenu/menu_filesel.c
> 
> Log:
> support multiple actions in menu's file browser using key bindings

For the record, the way to use it (c/p from menu.conf from geexbox) is for example:

<filesel name="open_file" title="Select a file: %p"
         filter="/etc/extensions" file-action="run 'mp_loader \'%p\''"
         actions="d:run 'mp_loader \'%p\' d',c:run 'mp_loader \'%p\' c',r:run 'm
p_loader \'%p\' r',o:run 'mp_loader \'%p\' o',p:run 'mp_loader \'%p\' p',l:run '
mp_loader \'%p\' l',u:run 'mp_loader \'%p\' u',m:menu hide" auto-close="yes"/>

where it defines different actions according to the key stroke (d,c,r,o,p,l,u,m in this example).

Ben


-- 
"My life, and by extension everyone else's is meaningless."
Bender, Futurama



More information about the MPlayer-cvslog mailing list