Japanese translation of message catalog for Sawfish Window-Manager
Revision | 47e09a56bffb17e1deda7adff175ae67c9a48daa (tree) |
---|---|
Time | 2013-05-11 00:48:36 |
Author | Christopher Roy Bratusek <nano@tuxf...> |
Commiter | Christopher Roy Bratusek |
make extra root-menu entries optional
@@ -79,6 +79,9 @@ Possible values are \"kde\", \"gnome\", \"mate\", \"xfce\", \"razor\", \"lxde\" | ||
79 | 79 | (defvar want-poweroff-menu t |
80 | 80 | "Add poweroff menu if you don't use GNOME / KDE / XFCE / Razor-Qt / LXDE.") |
81 | 81 | |
82 | + (defvar want-extra-menu-entries t | |
83 | + "Provide additional entries in root menu.") | |
84 | + | |
82 | 85 | (setq *user-structure* 'user) |
83 | 86 | |
84 | 87 | ;; frame-style loaded if user hasn't set their own |
@@ -172,14 +175,12 @@ Possible values are \"kde\", \"gnome\", \"mate\", \"xfce\", \"razor\", \"lxde\" | ||
172 | 175 | (when (equal desktop-environment "kde") |
173 | 176 | (sawfish.wm.integration.kde#kde-late-init)) |
174 | 177 | |
175 | - (if (equal filemanager "") | |
176 | - (let ((menu root-menu)) | |
177 | - (nconc menu `(() | |
178 | - (,(_ "_Kill Window") (system "xkill &"))))) | |
178 | + (when want-extra-menu-entries | |
179 | 179 | (let ((menu root-menu)) |
180 | - (nconc menu `(() | |
181 | - (,(_ "_Open Home") (filemanager "~")) | |
182 | - (,(_ "_Kill Window") (system "xkill &")))))) | |
180 | + (nconc menu `(())) | |
181 | + (unless (equal filemanager "") | |
182 | + (nconc menu `((,(_ "_Open Home") (filemanager "~"))))) | |
183 | + (nconc menu `((,(_ "_Kill Window") (system "xkill &")))))) | |
183 | 184 | |
184 | 185 | ;; generate apps-menu from *.desktop files |
185 | 186 | (unless batch-mode |