--===============1470227504== Content-Type: multipart/signed; boundary="nextPart3020122.4INoZ17zhk"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart3020122.4INoZ17zhk Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wednesday 28 September 2005 00:32, Chakkaradeep C C wrote: > Hi all, > > >> was unable to find where the "Applications" Menu gets added. > > > >that happens in PanelServiceMenu. KMenu::initialize() makes a call to > >PanelServiceMenu::initialize() which calls doInitialize which call > > fillMenu > > i got the above function, but now since i want to place the applications = in > my own custom group name rather than using "Application,Development,Games= ", > how should i proceed...does kappfinder plays a role here?.. in that case you won't want to follow the groupings as provided by=20 KServiceGroup. you'll just want to get all the applications available and=20 store them in your own tree arrangement. you can query sycoca (sycoca =3D= =3D=20 SYstem COnfiguraton CAche) by application name or keywords. > what does, > "KServiceGroup::Ptr g(static_cast(e));" statement > do? e and e1 are KSycocaEntry objects; KServiceGroup is a KSycocaEntry subclass= =20 that represents a group of "services" (in this case, application entries as= =20 described by .desktop files). so this cast is necessary to change the point= er=20 type from a KSycocaEntry to a KServiceGroup. > if ( nbChildCount =3D=3D 1 && g->allowInline() && g->inlineAlias()) this bit of code just inlines submenus of only one item. so this: Menu A Menu B Item 1 Menu C Item 2 Item 3 Item 4 Item 5 Item 6 becomes: Menu A Menu C Item 2 Item 3 Item 1 Item 4 Item 5 Item 6 =2D-=20 Aaron J. Seigo GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA EE75 D6B7 2EB1 A7F1 DB43 =46ull time KDE developer sponsored by Trolltech (http://www.trolltech.com) --nextPart3020122.4INoZ17zhk Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQBDOqd21rcusafx20MRAgWNAKCVq9Ug9xilDm++hgGTCy3ljMGVpgCgoqH0 ITfnvZZzMwsX2SAnjUpLymM= =ZYfh -----END PGP SIGNATURE----- --nextPart3020122.4INoZ17zhk-- --===============1470227504== Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline = >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscrib= e << --===============1470227504==--