View | Details | Raw Unified | Return to bug 13011
Collapse All | Expand All

(-)fluxbox~ (-10 / +3 lines)
Lines 8-33 compat="menu-1" Link Here
8
8
9
compat="menu-2"
9
compat="menu-2"
10
10
11
function findIcon($name) =
12
 ifnempty($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
18
function X11Command() =
11
function X11Command() =
19
 nstring(level(), "   ") "[exec] (" esc(title(), ")") ") {" $command "}" findIcon($icon) "\n";
12
 nstring(level(), "   ") "[exec] (" esc(title(), ")") ") {" $command "} <" locate_icon("16", $icon) "> \n";
20
13
21
function embededCommand() =
14
function embededCommand() =
22
 nstring(level(), "   ") "[" $command "] (" translate(lang(), title()) ")\n";
15
 nstring(level(), "   ") "[" $command "] (" translate(lang(), title()) ")\n";
23
16
24
function textCommand() =
17
function textCommand() =
25
 nstring(level(), "   ") "[exec] (" esc(title(), ")") ") {" term() "}" findIcon($icon) "\n";
18
 nstring(level(), "   ") "[exec] (" esc(title(), ")") ") {" term() "} <" locate_icon("16", $icon) "> \n";
26
19
27
function BeginSection() =
20
function BeginSection() =
28
    ifelse($basesection,
21
    ifelse($basesection,
29
        ifempty($command,
22
        ifempty($command,
30
            nstring(level(), "  ") "[submenu] (" translate(lang(), title()) ")" findIcon($icon) "\n"),
23
            nstring(level(), "  ") "[submenu] (" translate(lang(), title()) ") <" locate_icon("16", $icon) "> \n"),
31
        "\n[begin] (ALT Linux)\n[include] (~/.fluxbox/usermenu)\n");
24
        "\n[begin] (ALT Linux)\n[include] (~/.fluxbox/usermenu)\n");
32
25
33
function EndSection() =
26
function EndSection() =

Return to bug 13011