xfdesktop menu is getting awesomer
jannis at xfce.org
Mon Mar 19 12:44:56 CET 2007
On Mon, 19 Mar 2007 11:38:32 +0000 (UTC), Tuukka Mäkinen wrote:
> On Sun, 18 Mar 2007, Brian J. Tarricone wrote:
> > Jannis - a couple things...
> > 1. frap_menu_get_layout_items() currently returns a sorted list of
> > submenus and items if the .menu file doesn't have a <Layout>. For
> > flexibility, do you think it could either return NULL in that case,
> > or maybe add extra API e.g. frap_menu_has_layout() so I can check if
> > there's a layout. If not, my preference is to show submenus first
> > (sorted) and then items (sorted), not having them all together.
> > Adding the extra API will let implementors who care decide how they
> > want to handle the default layout.
> I suppose the standard suggested way to do this is to use
> <DefaultLayout>? Just put the block below to your menufile.
> <Merge type="menus"/>
> <Merge type="files"/>
The <DefaultLayout> stuff is optional. I haven't implemented it yet.
But yes, this would probably work. Anyhow, having a
frap_menuhas_layout() function can't hurt.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the Xfce4-dev