FrapMenu menu/item ordering

Brian J. Tarricone bjt23 at cornell.edu
Wed Feb 21 22:50:25 CET 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 21 Feb 2007 22:37:26 +0100 Jannis Pohlmann wrote:

>The only way to have a special order (and separators) is using the
><Layout> element - which is not supported by FrapMenu yet. I haven't
>planned how to implement this, but I could imagine providing a
>
>  FrapMenuLayout frap_menu_get_layout (FrapMenu *menu);
>
>function in combination with a FrapMenuLayout class containing menus,
>separators and items in order according to <Layout> elements. If you
>want to have special elements placed on top and separated like in the
>current menu, you could then just do:
>
>  <Menu>
>    <Name>Applications</Name>
>    <Directory>applications.directory</Directory>
>    <Menu>
>      <Name>Settings</Name>
>      ...
>    </Menu>
>    <Layout>
>      <Filename>xfrun4.desktop</Filename>
>      <Separator/>
>      <Filename>default-terminal.desktop</Filename>
>      <Filename>Thunar.desktop</Filename>
>      <Filename>default-browser.desktop</Filename>
>      <Separator/>
>      <Menuname>Settings</Menuname>
>      ...
>    </Layout>
>  </Menu>

That sounds fine to me.  Ideally it would still be possible in this
case to get notifications when parts of the menu change, and be able to
update the GtkMenu without having to regenerate everything from
scratch.  I guess I'm getting a bit ahead of myself here, though.

	-brian

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD4DBQFF3L6p6XyW6VEeAnsRAmP+AKDXo7Emn6bP4PSy7Wr8sJVfqzPv1QCYrqjb
1atSMWkqsvoJY/+cB8Wusw==
=Kdo4
-----END PGP SIGNATURE-----


More information about the Xfce4-dev mailing list