diff options
author | Manoj Srivastava <srivasta@debian.org> | 2006-04-17 14:33:17 +0000 |
---|---|---|
committer | Manoj Srivastava <srivasta@golden-gryphon.com> | 2013-04-27 17:30:58 -0700 |
commit | 19f2836bb27ca31a54ce15897302cf6a9ba7e14e (patch) | |
tree | e4f1869045949ced32b9442781d62052dc1d52f2 | |
parent | 9e63abc9a136ff46991b64ce62aa0e2d70f3c32b (diff) |
[menu] Tweak the Debian menu files for official packages
Defer language translations for now
git-archimport-id: srivasta@debian.org--etch/wm-icons--debian--0.4--patch-2
(cherry picked from commit d8bea97e35db3fb856b1c6131ff79a21063f49e4)
git-archimport-id: srivasta@debian.org--etch/wm-icons--debian--0.4--patch-3
(cherry picked from commit 7e89639821ac681c3ed74037c2a7ac3d4567f6f3)
git-archimport-id: srivasta@debian.org--etch/wm-icons--debian--0.4--patch-4
(cherry picked from commit 3cfe2ea894a3599b943dc2546820b400ae161d58)
git-archimport-id: srivasta@debian.org--etch/wm-icons--debian--0.4--patch-5
(cherry picked from commit 7aa0bd600186e9d60a76be9b37499499ea6f0cfd)
-rw-r--r-- | etc/debian-menu-system/README | 14 | ||||
-rwxr-xr-x | etc/debian-menu-system/wm-icons-fvwm2rc-menu.in | 16 | ||||
-rw-r--r-- | etc/debian-menu-system/wm-icons.h.in | 23 |
3 files changed, 31 insertions, 22 deletions
diff --git a/etc/debian-menu-system/README b/etc/debian-menu-system/README index 73b9985..eaf3648 100644 --- a/etc/debian-menu-system/README +++ b/etc/debian-menu-system/README @@ -10,20 +10,14 @@ as a simple user. the "standard sections" and wm-icons icons and a map from packages name to wm-icons icons. -* wm-icons-fvwm2rc-menu is a menu-method script for FVWM. You should edit - the lines: - rootprefix="/usr/local/share/fvwm/debian-menu-system/" - userprefix="/.fvwm/debian-menu-system/" - replace "/usr/local/share/fvwm/" by the FVWM configuration directory - and ".fvwm" by the FVWM user directory. Then, you should add - Read debian-menu-system/wm-icons-menu +* wm-icons-fvwm2rc-menu is a menu-method script for FVWM. You should add + Read wm-icons/menudefs.hook in the configuration file and bind it in some ways e.g.: add: - + "menu system%menu/programs.xpm" Popup MenuFvwmDebianMenuSystem + + "menu system%menu/programs.xpm" Popup "/DebianWmIcons" in your root menu or add say: - Mouse 1 R A Menu MenuFvwmDebianMenuSystem - You should also use the configuration file "this dir"/../fvwm2rc + Mouse 1 R A Menu "/DebianWmIcons" * Other window managers: just (copy and rename and) edit the correponding menu methods script; you should add "!include wm-icons.h" and then you diff --git a/etc/debian-menu-system/wm-icons-fvwm2rc-menu.in b/etc/debian-menu-system/wm-icons-fvwm2rc-menu.in index 55964e7..9b32f11 100755 --- a/etc/debian-menu-system/wm-icons-fvwm2rc-menu.in +++ b/etc/debian-menu-system/wm-icons-fvwm2rc-menu.in @@ -1,10 +1,11 @@ -#!/usr/sbin/install-menu +#!/usr/bin/install-menu compat="menu-1" +!include lang.h !include menu.h # you may/should edit/check the systemFindIcon in wm-icons.h !include wm-icons.h -function ltitle()=translate(lang(),title()) +function ltitle()=translate($lang,title()) # if you want wm-icons only: # replace "wmIconsFindIcon" by wmIconsFindIconWmOnly @@ -21,6 +22,9 @@ supported fvwm2module= "+ \"" escfirst(ltitle(), $hotkey,"&") \ cond_surr(wmIconsFindIcon($icon,$package,$section,"menu/"),"%","%") \ "\" Module " $command "\n" + fvwm= "+ \"" escfirst(ltitle() ,$hotkey,"&") \ + cond_surr(wmIconsFindIcon($icon,$package,$section,"menu/"),"%","%") \ + "\" " $command "\n" fvwm2= "+ \"" escfirst(ltitle() ,$hotkey,"&") \ cond_surr(wmIconsFindIcon($icon,$package,$section,"menu/"),"%","%") \ "\" " $command "\n" @@ -46,8 +50,8 @@ submenutitle= "+ \"" escfirst(ltitle() ,$hotkey,"&") \ cond_surr(wmIconsFindSectionIcon($section,$icon,"menu/"),"%","%") \ "\" PopUp \"" replacewith($section, " ", "_") "\"\n" -rootprefix="/usr/local/share/fvwm/debian-menu-system/" -userprefix="/.fvwm/debian-menu-system/" +rootprefix="/etc/X11/fvwm/wm-icons/" +userprefix="/.fvwm/wm-icons/" treewalk="c(m)" -genmenu="wm-icons-menu" -rootsection="MenuFvwmDebianMenuSystem" +genmenu="menudefs.hook" +rootsection="/DebianWmIcons" diff --git a/etc/debian-menu-system/wm-icons.h.in b/etc/debian-menu-system/wm-icons.h.in index 8bff428..bf3a177 100644 --- a/etc/debian-menu-system/wm-icons.h.in +++ b/etc/debian-menu-system/wm-icons.h.in @@ -13,13 +13,24 @@ # need to replace /urs/local/share/fvwm by "fvwm-themes @datadir@"/fvwm function systemFindIcon($filename)= \ ifeqelse($filename, "", "", \ + ifelsefile("/usr/share/icons/wm-icons/mini/" $filename, \ + "/usr/share/icons/wm-icons/mini/" $filename, \ ifelsefile("/usr/share/icons/mini/" $filename, \ - "/usr/share/icons/mini/" $filename, \ + "/usr/share/icons/mini/" $filename, \ + ifelsefile("/usr/share/icons/wm-icons/16x16-general/" $filename, \ + "/usr/share/icons/wm-icons/16x16-general/" $filename, \ + ifelsefile("/usr/share/icons/wm-icons/16x16-gnome/" $filename, \ + "/usr/share/icons/wm-icons/16x16-gnome/" $filename, \ + ifelsefile("/usr/share/icons/wm-icons/16x16-kde/" $filename, \ + "/usr/share/icons/wm-icons/16x16-kde/" $filename, \ + ifelsefile("/usr/share/fvwm-crystal/fvwm/icons/Default/" $filename, \ + "/usr/share/fvwm-crystal/fvwm/icons/Default/" $filename, \ ifelsefile("/usr/local/share/fvwm/tr-images/16x16-gnome/" $filename, \ - "/usr/local/share/fvwm/tr-images/16x16-gnome/" $filename, \ + "/usr/local/share/fvwm/tr-images/16x16-gnome/" $filename, \ ifelsefile("/usr/local/share/fvwm/tr-images/16x16-kde2/" $filename, \ - "/usr/local/share/fvwm/tr-images/16x16-kde2/" $filename,\ - "")))) + "/usr/local/share/fvwm/tr-images/16x16-kde2/" $filename, \ + ""))))))))) + # return the wm-icons associated to a standard section. If the section is # not standard return the "system/user" icons for this section and if not @@ -30,7 +41,7 @@ function wmIconsFindSectionIcon($s,$i,$t)= \ ifeqelse(systemFindIcon($i),"",\ ifeqelse(wmIconsGetSectionIcon(parent($s)),"",\ ifeqelse(wmIconsGetSectionIcon(parent(parent($s))),"",\ - $t "folder.xpm",\ + $t "folder.xpm",\ $t wmIconsGetSectionIcon(parent(parent($s)))),\ $t wmIconsGetSectionIcon(parent($s))),\ systemFindIcon($i)),\ @@ -41,7 +52,7 @@ function wmIconsFindSectionIconWmOnly($s,$i,$t)= \ ifeqelse(wmIconsGetSectionIcon($s),"",\ ifeqelse(wmIconsGetSectionIcon(parent($s)),"",\ ifeqelse(wmIconsGetSectionIcon(parent(parent($s))),"",\ - $t "folder.xpm",\ + $t "folder.xpm",\ $t wmIconsGetSectionIcon(parent(parent($s)))),\ $t wmIconsGetSectionIcon(parent($s))),\ $t wmIconsGetSectionIcon($s)) |