menu-spec: Excluded items are Unllocated
Frederic Crozat
fcrozat at mandrakesoft.com
Fri Feb 4 10:50:11 EET 2005
Le jeudi 03 février 2005 à 22:48 +0100, Waldo Bastian a écrit :
> On Friday 10 December 2004 16:50, Mark McLoughlin wrote:
> > Hi,
> >
> > On Wed, 2004-12-08 at 09:40 -0500, Mark McLoughlin wrote:
> > > On Wed, 2004-12-08 at 14:55 +0100, Waldo Bastian wrote:
> > > > On Wednesday 08 December 2004 14:32, you wrote:
> > > > > Well, we could say that items which match an <Include> rule are
> > > > > "allocated" whether or not they are later excluded by an <Exclude>
> > > > > rule. If the goal of <OnlyUnAllocated/> is to catch items that don't
> > > > > fit in any other category, then I think that would work fine.
> > > >
> > > > Hmm... so
> > > >
> > > > <Include>
> > > > <And><Category>foo</Category><Not><Category>bar</Category></Not></And>
> > > > </Include>
> > > >
> > > > would not allocate the "bar" items and
> > > >
> > > > <Include>
> > > > <And><Category>foo</Category></And>
> > > > </Include>
> > > > <Exclude>
> > > > <And><Category>bar</Category></And>
> > > > </Exclude>
> > > >
> > > > would allocate the "bar" items then?
> > > >
> > > > I guess that would work.
> > >
> > > Right, the idea being that in former example items with Category Bar
> > > aren't a good fit for that menu, but in the latter example they are a
> > > good fit, but you just don't want them displayed.
> > >
> > > How does the attached patch look? Also changed the <OnlyUnallocated>
> > > test to catch this.
> >
> > I've gone ahead and committed that now ...
>
> Ok, I have adjusted the KDE menu to take this change into account but I am
> still left with a failed regression test "m".
>
> The problem is basically that KDE considers menu entries that are allocated to
> a menu that is hidden as allocated, while the test case doesn't consider them
> to be allocated.
>
> So the test-case puts kwrite, kedit and kate in the "Other" menu, while KDE
> puts them in the "Hidden" menu.
Oh, BTW, while speaking about hidden menu, to be compliant with its
previous menu system, KDE is hiding submenus called '.hidden', but since
it isn't defined in the spec, other desktops display them. Maybe we
should document this..
--
Frederic Crozat <fcrozat at mandrakesoft.com>
Mandrakesoft
More information about the xdg
mailing list