forked from e16/e16
1
0
Fork 0

Menu generation: Only one menu tree (not GNOME/KDE/Other).

SVN revision: 61445
This commit is contained in:
Kim Woelders 2011-07-17 18:43:19 +00:00
parent 9bae0a4caf
commit 6a5651b3f1
1 changed files with 3 additions and 7 deletions

View File

@ -84,9 +84,7 @@ $DoIconv = `which iconv`;
@MainMenu = (
"t:User Menus",
"m:User Application List:user_apps.menu",
"m:GNOME:menus_GNOME/index.menu",
"m:KDE:menus_KDE/index.menu",
"m:Other:menus_Other/index.menu",
"m:Applications:menus_apps/index.menu",
"m:Epplets:epplets.menu",
"c:Restart:exit restart",
"c:Log Out:exit logout"
@ -404,7 +402,7 @@ sub MakeAppsMenu {
# Sort the apps into categories
foreach $k (sort(keys(%Name))) {
next if ($Type{$k} ne $type);
# next if ($Type{$k} ne $type);
$c = $Cats{$k};
$c =~ s/;.*$//;
# $menus{$c} = $k;
@ -477,9 +475,7 @@ MkDir("$EdirMenus");
MakeMenu("file.menu", \@MainMenu);
MakeMenu("user_apps.menu", \@UserAppsMenu);
MakeEppsMenu("epplets.menu");
MakeAppsMenu("GNOME");
MakeAppsMenu("KDE");
MakeAppsMenu("Other");
MakeAppsMenu("apps");
CloseMessageWindows();
system("eesh -e 'menus reload'");