menu-spec: Excluded items are Unllocated
Mark McLoughlin
markmc at redhat.com
Wed Dec 8 16:40:51 EET 2004
On Wed, 2004-12-08 at 14:55 +0100, Waldo Bastian wrote:
> On Wednesday 08 December 2004 14:32, you wrote:
> > > I can confirm your observations. In the KDE menu editor I explicitly
> > > exclude deleted items from the default "OnlyUnallocated" menu in
> > > addition. That's rather hackish.
> > >
> > > Maybe we can add an attribute to the exclude tag to indicate that we
> > > really don't want this entry around, and that it should be considered
> > > "allocated to this menu but not shown"
> >
> > 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.
Cheers,
Mark.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: onlyunallocated.patch
Type: text/x-patch
Size: 5403 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/xdg/attachments/20041208/d87c604f/attachment.bin
More information about the xdg
mailing list