View | Details | Raw Unified
Collapse All | Expand All

(-)a/fluxbox.menu-methods (-5 / +1 lines)
 Lines 9-19   compat="menu-1" Link Here 
9
compat="menu-2"
9
compat="menu-2"
10
10
11
function findIcon($name) =
11
function findIcon($name) =
12
 ifnempty($name,
12
 ifnempty(locate_icon("16", $name), " <" locate_icon("16", $name) ">");
13
  ifelsefile("/usr/share/pixmaps/" stripdir($name), " </usr/share/pixmaps/" stripdir($name) ">",
14
   ifelsefile("/usr/share/icons/hicolor/16x16/apps/" stripdir($name), " </usr/share/icons/hicolor/16x16/apps/" stripdir($name) ">",
15
    ifelsefile("/usr/share/icons/" stripdir($name), " </usr/share/icons/" stripdir($name) ">",
16
     ifelsefile("/usr/share/icons/mini/" stripdir($name), " </usr/share/icons/mini/" stripdir($name) ">", "")))));
17
13
18
function X11Command() =
14
function X11Command() =
19
 nstring(level(), "   ") "[exec] (" esc(title(), ")") ") {" $command "}" findIcon($icon) "\n";
15
 nstring(level(), "   ") "[exec] (" esc(title(), ")") ") {" $command "}" findIcon($icon) "\n";