--- fluxbox~ 2006-07-18 18:04:56 +0400 +++ fluxbox~ 2007-10-09 18:49:48 +0400 @@ -8,26 +8,19 @@ compat="menu-1" compat="menu-2" -function findIcon($name) = - ifnempty($name, - ifelsefile("/usr/share/pixmaps/" stripdir($name), " ", - ifelsefile("/usr/share/icons/hicolor/16x16/apps/" stripdir($name), " ", - ifelsefile("/usr/share/icons/" stripdir($name), " ", - ifelsefile("/usr/share/icons/mini/" stripdir($name), " ", ""))))); - function X11Command() = - nstring(level(), " ") "[exec] (" esc(title(), ")") ") {" $command "}" findIcon($icon) "\n"; + nstring(level(), " ") "[exec] (" esc(title(), ")") ") {" $command "} <" locate_icon("16", $icon) "> \n"; function embededCommand() = nstring(level(), " ") "[" $command "] (" translate(lang(), title()) ")\n"; function textCommand() = - nstring(level(), " ") "[exec] (" esc(title(), ")") ") {" term() "}" findIcon($icon) "\n"; + nstring(level(), " ") "[exec] (" esc(title(), ")") ") {" term() "} <" locate_icon("16", $icon) "> \n"; function BeginSection() = ifelse($basesection, ifempty($command, - nstring(level(), " ") "[submenu] (" translate(lang(), title()) ")" findIcon($icon) "\n"), + nstring(level(), " ") "[submenu] (" translate(lang(), title()) ") <" locate_icon("16", $icon) "> \n"), "\n[begin] (ALT Linux)\n[include] (~/.fluxbox/usermenu)\n"); function EndSection() =