forked from e16/e16
1
0
Fork 0

Menu fixes.

SVN revision: 13004
This commit is contained in:
Kim Woelders 2005-01-17 17:10:06 +00:00
parent 9470f4560c
commit b430ba5c73
3 changed files with 7 additions and 7 deletions

View File

@ -67,7 +67,6 @@ ADD_MENU_TEXT_ITEM("Desktop Background Settings ...", __A_CMD, "bg cfg")
ADD_MENU_TEXT_ITEM("Theme Transparency Settings ...", __A_CMD, "trans cfg")
ADD_MENU_TEXT_ITEM("Composite Settings ...", __A_CMD, "cm cfg");
ADD_MENU_TEXT_ITEM("Miscellaneous Settings ...", __A_CMD, "misc cfg misc");
ADD_MENU_TEXT_ITEM("Legacy E-conf tool ...", __A_EXEC, "e-conf")
END_MENU
BEGIN_NEW_MENU("ROOT_2", "ROOT")

View File

@ -25,7 +25,7 @@
##############################################################################
# Likely prefixes
$Prefixes = "/usr/local:/usr:/opt::/opt/kde:$ENV{'KDEDIR'}";
$Prefixes = "/usr/local:/usr:/opt:/opt/kde:$ENV{'KDEDIR'}";
$Prefixes = RemoveDuplcates($Prefixes);
# Where to look for GNOME2/KDE2,3 stuff
@ -93,7 +93,6 @@ $DoIconv = `which iconv`;
"X-KDE-settings-sound",
"X-KDE-settings-system",
"X-KDE-settings-webbrowsing"
);
@MainMenu = (
@ -103,8 +102,8 @@ $DoIconv = `which iconv`;
"m:KDE:menus/menus_KDE/index.menu",
"m:Other:menus/menus_Other/index.menu",
"m:Enlightenment Epplets:menus/epplets.menu",
"x:Restart Enlightenment:eesh -e 'restart'",
"x:Log Out:eesh -e 'exit'"
"c:Restart Enlightenment:exit restart",
"c:Log Out:exit logout"
);
@UserAppsMenu = (
@ -182,6 +181,8 @@ sub MakeMenu {
print FD "\"$n\" NULL menu \"$p\"\n";
} elsif ($t eq "x") {
print FD "\"$n\" NULL exec \"$p\"\n";
} elsif ($t eq "c") {
print FD "\"$n\" NULL \"$p\"\n";
}
}
close(FD);

View File

@ -307,9 +307,9 @@ FillFlatFileMenu(Menu * m, const char *name, const char *file)
MenuAddItem(m, mi);
}
}
else
else if (act)
{
mi = MenuItemCreate(txt, icc, NULL, NULL);
mi = MenuItemCreate(txt, icc, act, NULL);
MenuAddItem(m, mi);
}
if (txt)