menu building

Chris G cl at isbd.net
Tue Aug 18 11:19:08 CEST 2009


On Tue, Aug 18, 2009 at 09:19:12AM +1000, Alex Samad wrote:
> Hi
> 
> having some problem around building menu's with the new system, i have
> something like this
> 
> 
> <Menu>
> 		<Name>Work</Name>
> 		<Include>
> 				<Category>Alex-work</Category>
> 		</Include>
> 
> 		<Separator/>
> 		<Menu>
> 			<Name>URL</Name>
> 			<Include>
> 				<And>
> 				<Category>Alex-work</Category>
> 				<Category>Alex-url</Category>
> 				</And>
> 			</Include>
> 
> 		</Menu>
> </menu>
> 
> 
> I want items that are Alex-work,Alex-url to only turn up in the URL
> section not the top level, but I tried 
> 
> 
> 		<Include>
> 			<And>
> 				<Category>Alex-work</Category>
> 			<not> <Category>Alex-url</Category> </not>
> 			</And>
> 		</Include>
> 
> 
> but that fails completely 
> 
> Any idea how to get it to work ?
> 
Don't use XML?  :-)

I'm semi-serious, xml is far from ideal as a language for 'hand
created' scripts.  It's fine as a 'behind the scenes' format when
there's a GUI creating it but not if you're editing it yourself.

-- 
Chris Green




More information about the Xfce mailing list