package menu
tags 504508 + pending
quit 
On Tue, Nov 04, 2008 at 05:15:32PM +0100, Vaclav Ovsik wrote:
> Package: menu
> Version: 2.1.41
> Severity: wishlist
> 
> Hi,
> while playing with menu system I found, that an example from
> Debian Menu System / chapter "3.9 Entries for menu sections"
> 
> > It is possible to add entries for menu sections, but it is not
> > mandatory since section entries are created automatically. However,
> > this allows to specify fields for sections like icon and sort. The
> > syntax for menu sections entries is the same as for regular entries,
> > the section field holding the name of the parent section. For example
> > 
> >      ?package(local.games): needs="text" title="Games" section="/" 
> > sort="001"
> > 
> > will sort Games first.
> 
> does not work for me. After some investigation I found, that
> /etc/menu-methods/menu.h contains:
> 
> > # This sort menu entry case-insensitively.
> > sort=tolower(title())
> 
> and I must change it to something like:
> 
> > sort=$sort ":" tolower(title())
> 
> to achieve the above example to work.
> 
> So menu.h or documentation should be changed.
Hello Vaclav,

I checked the code and I found that if the configuration item 'sort' is
set then the variable $sort is ignored.

The conclusion is that the documentation is correct but 
menu.h should be changed as you suggest:
sort=$sort ":" tolower(title())
to reenable $sort.
I have applied your patch.

Thanks a lot for this report!
-- 
Bill. <ballo...@debian.org>

Imagine a large red swirl here. 



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to