KServiceGroup question
Waldo Bastian
bastian at kde.org
Sat Jul 24 20:38:57 BST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Saturday 24 July 2004 04:17, Benjamin Meyer wrote:
> Yup that worked great. Is there anyway to make the menu order not
> alphabetical?
Yes, include a <Layout> element:
For example, for the main KDE menu you could add something like:
<Layout>
<Merge type="menus" />
<Menuname>Development</Menuname>
<Menuname>Editors</Menuname>
<Menuname>Edutainment</Menuname>
<Menuname>Games</Menuname>
<Menuname>Graphics</Menuname>
<Menuname>Internet</Menuname>
<Menuname>Multimedia</Menuname>
<Menuname>Office</Menuname>
<Menuname>Science</Menuname>
<Menuname>Settingsmenu</Menuname>
<Menuname>System</Menuname>
<Menuname>Toys</Menuname>
<Menuname>Utilities</Menuname>
<Menuname>WebMirror</Menuname>
<Menuname>Applications</Menuname>
<Merge type="files" />
<Filename>kde-KControl.desktop</Filename>
<Filename>kde-Help.desktop</Filename>
<Filename>kde-Kfind.desktop</Filename>
<Filename>kde-Home.desktop</Filename>
</Layout>
The layout does not determine the content of the menu, only the order. The
Merge points are used to add stuff that you didn't mention explicitly. The
spec says that every <Layout> must have them.
Cheers,
Waldo
- --
bastian at kde.org | KDE Community World Summit 2004 | bastian at suse.com
bastian at kde.org | 21-29 August, Ludwigsburg, Germany | bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQFBArrRN4pvrENfboIRAqG9AJ98pCj9gKUxJ3Mnad74+4jn5K+d4ACeOpWb
gvFoMs7gdae0c5cyweQ7aTk=
=saCd
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list