xfdesktop menu is getting awesomer

Jannis Pohlmann 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.
>
> <DefaultLayout>
>    <Merge type="menus"/>
>    <Merge type="files"/>
> </DefaultLayout>

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.

  - Jannis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20070319/73cf1d35/attachment.pgp>


More information about the Xfce4-dev mailing list