[PATCH] fix bug: kicker cant have separators in its menus
Alexander Neundorf
alexander.neundorf at gmx.net
Mon Oct 7 10:56:43 BST 2002
Hi,
well, it's a three-liner, insert a desktop file where the name-entry is
KickerMenuSeparator, und together with a SortOrder you have separators in the
kicker menu.
Bye
Alex
diff -b -u -p -r1.50 service_mnu.cpp
--- service_mnu.cpp 2002/08/25 06:45:15 1.50
+++ service_mnu.cpp 2002/10/07 09:53:10
@@ -283,7 +283,11 @@ void PanelServiceMenu::configChanged()
void PanelServiceMenu::insertMenuItem(KService::Ptr & s, int nId, int
nIndex/*= -1*/)
{
QString serviceName = s->name();
-
+ if (serviceName=="KickerMenuSeparator")
+ {
+ insertSeparator();
+ return;
+ }
// add comment
if ( detailed_ ) {
QString comment = s->genericName();
More information about the kde-core-devel
mailing list