xfdesktop menu is getting awesomer

Jannis Pohlmann jannis at xfce.org
Mon Mar 19 17:39:21 CET 2007


On Mon, 19 Mar 2007 09:30:44 -0700, Brian J. Tarricone wrote:

> 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>
>
> Ah, good point.  I hadn't thought of that.  And you're right, the spec
> says exactly the above to be assumed as default when there's no
> default layout.  So Jannis, I'd be ok with frap_menu_get_layout_items
> () still returning stuff even when there's no layout (based on the
> implied layout above), but having the _has_layout() that you added is
> still nice.

Let's keep it as a workaround for now, until the <DefaultLayout> part
of the spec is implemented.

  - 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/12734c50/attachment.pgp>


More information about the Xfce4-dev mailing list