This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#7003 - Allow forward references of menus in tagnavi.config
Attached to Project:
Rockbox
Opened by Mark Reiche (Porphyr) - Monday, 09 April 2007, 22:13 GMT+2
Last edited by Miika Pekkarinen (miipekk) - Friday, 22 June 2007, 14:48 GMT+2
Opened by Mark Reiche (Porphyr) - Monday, 09 April 2007, 22:13 GMT+2
Last edited by Miika Pekkarinen (miipekk) - Friday, 22 June 2007, 14:48 GMT+2
|
DetailsHere is another patch that I consider useful. It allows to reference menus in the tagnavi.config that are defined later. I use this to reference the default main menu from my customized menus in tagnavi_custom.config (because they are defined below the %include statement, and copy'n'paste is not a smart solution :-)
Technical details of change: - Parsing of submenu entries (label ==> id): When no menu with that id specified yet, create a new empty menu with that id - Parsing of menu start lines (%menu_start id title): First check if there is already a menu with that id (if found, append; if not found create new empty menu) Side effect - removed obsolete link to parent menu - removed obsolete " menu->itemcount = 0; " (because menu is filled with zeros by memset) |
This task depends upon
But I don't really understand why this should be necessary. Actually, this patch should *reduce* the number of necessary menus because you don't have to copy menus from the tagnavi.config to your tagnavi_custom.config if you want to reference them from there.
So in case anybody is going to integrate this into the main release, please use the attached version of the patch (which includes Pascal's suggestion).
Thanks a lot.