• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Japanese translation of message catalog for Sawfish Window-Manager


Commit MetaInfo

Revision47e09a56bffb17e1deda7adff175ae67c9a48daa (tree)
Time2013-05-11 00:48:36
AuthorChristopher Roy Bratusek <nano@tuxf...>
CommiterChristopher Roy Bratusek

Log Message

make extra root-menu entries optional

Change Summary

Incremental Difference

--- a/lisp/sawfish/wm/user.jl
+++ b/lisp/sawfish/wm/user.jl
@@ -79,6 +79,9 @@ Possible values are \"kde\", \"gnome\", \"mate\", \"xfce\", \"razor\", \"lxde\"
7979 (defvar want-poweroff-menu t
8080 "Add poweroff menu if you don't use GNOME / KDE / XFCE / Razor-Qt / LXDE.")
8181
82+ (defvar want-extra-menu-entries t
83+ "Provide additional entries in root menu.")
84+
8285 (setq *user-structure* 'user)
8386
8487 ;; frame-style loaded if user hasn't set their own
@@ -172,14 +175,12 @@ Possible values are \"kde\", \"gnome\", \"mate\", \"xfce\", \"razor\", \"lxde\"
172175 (when (equal desktop-environment "kde")
173176 (sawfish.wm.integration.kde#kde-late-init))
174177
175- (if (equal filemanager "")
176- (let ((menu root-menu))
177- (nconc menu `(()
178- (,(_ "_Kill Window") (system "xkill &")))))
178+ (when want-extra-menu-entries
179179 (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 &"))))))
183184
184185 ;; generate apps-menu from *.desktop files
185186 (unless batch-mode