• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

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

Révision756a25428f0b1b2a91582a6d83e8938462d7c241 (tree)
l'heure2010-11-20 18:47:14
AuteurChristopher Roy Bratusek <zanghar@free...>
CommiterChristopher Roy Bratusek

Message de Log

simplify edge-actions

Change Summary

Modification

--- a/lisp/sawfish/wm/edge/actions.jl
+++ b/lisp/sawfish/wm/edge/actions.jl
@@ -46,43 +46,23 @@ activated immediately, aswell as actions for while-moving a window."
4646 :type number
4747 :range (50 . nil))
4848
49- (defcustom left-edge-func 'none
50- "Action for the left screen-edge."
49+ (defcustom left-right-edge-func 'none
50+ "Action for the left and right screen-edge."
5151 :group edge-actions
5252 :type (choice hot-spot viewport-drag flip-workspace flip-viewport none))
5353
54- (defcustom left-edge-move-func 'none
55- "Action for the left screen-edge while moving a window."
54+ (defcustom left-right-edge-move-func 'none
55+ "Action for the left and right screen-edge while moving a window."
5656 :group edge-actions
5757 :type (choice hot-spot viewport-drag flip-workspace flip-viewport none))
5858
59- (defcustom top-edge-func 'none
60- "Action for the top screen-edge."
59+ (defcustom top-bottom-edge-func 'none
60+ "Action for the top and bottom screen-edge."
6161 :group edge-actions
6262 :type (choice hot-spot viewport-drag flip-workspace flip-viewport none))
6363
64- (defcustom top-edge-move-func 'none
65- "Action for the top screen-edge while moving."
66- :group edge-actions
67- :type (choice hot-spot viewport-drag flip-workspace flip-viewport none))
68-
69- (defcustom right-edge-func 'none
70- "Action for the right screen-edge."
71- :group edge-actions
72- :type (choice hot-spot viewport-drag flip-workspace flip-viewport none))
73-
74- (defcustom right-edge-move-func 'none
75- "Action for the right screen-edge."
76- :group edge-actions
77- :type (choice hot-spot viewport-drag flip-workspace flip-viewport none))
78-
79- (defcustom bottom-edge-func 'none
80- "Action for the bottom screen-edge."
81- :group edge-actions
82- :type (choice hot-spot viewport-drag flip-workspace flip-viewport none))
83-
84- (defcustom bottom-edge-move-func 'none
85- "Action for the bottom screen-edge while moving."
64+ (defcustom top-bottom-edge-move-func 'none
65+ "Action for the top and bottom screen-edge while moving."
8666 :group edge-actions
8767 :type (choice hot-spot viewport-drag flip-workspace flip-viewport none))
8868
@@ -116,27 +96,23 @@ activated immediately, aswell as actions for while-moving a window."
11696 (if corner
11797 (hot-spot-activate corner)
11898 (setq func nil)
119- (cond ((eq edge 'left)
120- (edge-action-call left-edge-func edge))
121- ((eq edge 'right)
122- (edge-action-call right-edge-func edge))
123- ((eq edge 'top)
124- (edge-action-call top-edge-func edge))
125- ((eq edge 'bottom)
126- (edge-action-call bottom-edge-func edge)))))))
99+ (cond ((or (eq edge 'left)
100+ (eq edge 'right))
101+ (edge-action-call left-right-edge-func edge))
102+ ((or (eq edge 'top)
103+ (eq edge 'bottom))
104+ (edge-action-call top-bottom-edge-func edge)))))))
127105
128106 (define (edge-action-move-init)
129107 (setq func nil)
130108 (setq no-enter t)
131- (case (get-active-edge)
132- ((left)
133- (edge-action-call left-edge-move-func 'left))
134- ((right)
135- (edge-action-call right-edge-move-func 'right))
136- ((top)
137- (edge-action-call top-edge-move-func 'top))
138- ((bottom)
139- (edge-action-call bottom-edge-move-func 'bottom)))
109+ (let ((edge (get-active-edge)))
110+ (cond ((or (eq edge 'left)
111+ (eq edge 'right))
112+ (edge-action-call left-right-edge-move-func edge))
113+ ((or (eq edge 'top)
114+ (eq edge 'bottom))
115+ (edge-action-call top-bottom-edge-move-func edge))))
140116 (setq no-enter nil))
141117
142118 (define (edges-activate init)