Japanese translation of message catalog for Sawfish Window-Manager
Révision | 756a25428f0b1b2a91582a6d83e8938462d7c241 (tree) |
---|---|
l'heure | 2010-11-20 18:47:14 |
Auteur | Christopher Roy Bratusek <zanghar@free...> |
Commiter | Christopher Roy Bratusek |
simplify edge-actions
@@ -46,43 +46,23 @@ activated immediately, aswell as actions for while-moving a window." | ||
46 | 46 | :type number |
47 | 47 | :range (50 . nil)) |
48 | 48 | |
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." | |
51 | 51 | :group edge-actions |
52 | 52 | :type (choice hot-spot viewport-drag flip-workspace flip-viewport none)) |
53 | 53 | |
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." | |
56 | 56 | :group edge-actions |
57 | 57 | :type (choice hot-spot viewport-drag flip-workspace flip-viewport none)) |
58 | 58 | |
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." | |
61 | 61 | :group edge-actions |
62 | 62 | :type (choice hot-spot viewport-drag flip-workspace flip-viewport none)) |
63 | 63 | |
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." | |
86 | 66 | :group edge-actions |
87 | 67 | :type (choice hot-spot viewport-drag flip-workspace flip-viewport none)) |
88 | 68 |
@@ -116,27 +96,23 @@ activated immediately, aswell as actions for while-moving a window." | ||
116 | 96 | (if corner |
117 | 97 | (hot-spot-activate corner) |
118 | 98 | (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))))))) | |
127 | 105 | |
128 | 106 | (define (edge-action-move-init) |
129 | 107 | (setq func nil) |
130 | 108 | (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)))) | |
140 | 116 | (setq no-enter nil)) |
141 | 117 | |
142 | 118 | (define (edges-activate init) |