aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/mpc.el12
2 files changed, 14 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3f7ae8232a7..a3123c95eba 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12011-10-05 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * mpc.el (mpc-tool-bar-map): Add labels.
4
12011-10-04 Glenn Morris <rgm@gnu.org> 52011-10-04 Glenn Morris <rgm@gnu.org>
2 6
3 * calendar/holidays.el (calendar-check-holidays): Doc fix. 7 * calendar/holidays.el (calendar-check-holidays): Doc fix.
diff --git a/lisp/mpc.el b/lisp/mpc.el
index 8854d4e908f..251e1864927 100644
--- a/lisp/mpc.el
+++ b/lisp/mpc.el
@@ -1089,10 +1089,12 @@ If PLAYLIST is t or nil or missing, use the main playlist."
1089(defvar mpc-tool-bar-map 1089(defvar mpc-tool-bar-map
1090 (let ((map (make-sparse-keymap))) 1090 (let ((map (make-sparse-keymap)))
1091 (tool-bar-local-item "mpc/prev" 'mpc-prev 'prev map 1091 (tool-bar-local-item "mpc/prev" 'mpc-prev 'prev map
1092 :enable '(not (equal (cdr (assq 'state mpc-status)) "stop"))) 1092 :enable '(not (equal (cdr (assq 'state mpc-status)) "stop"))
1093 :label "Prev" :vert-only t)
1093 ;; FIXME: how can we bind it to the down-event? 1094 ;; FIXME: how can we bind it to the down-event?
1094 (tool-bar-local-item "mpc/rewind" 'mpc-rewind 'rewind map 1095 (tool-bar-local-item "mpc/rewind" 'mpc-rewind 'rewind map
1095 :enable '(not (equal (cdr (assq 'state mpc-status)) "stop")) 1096 :enable '(not (equal (cdr (assq 'state mpc-status)) "stop"))
1097 :label "Rew" :vert-only t
1096 :button '(:toggle . (and mpc--faster-toggle-timer 1098 :button '(:toggle . (and mpc--faster-toggle-timer
1097 (not mpc--faster-toggle-forward)))) 1099 (not mpc--faster-toggle-forward))))
1098 ;; We could use a single toggle command for pause/play, with 2 different 1100 ;; We could use a single toggle command for pause/play, with 2 different
@@ -1100,20 +1102,26 @@ If PLAYLIST is t or nil or missing, use the main playlist."
1100 ;; to be a toggle-button, thus displayed depressed in one of the 1102 ;; to be a toggle-button, thus displayed depressed in one of the
1101 ;; two states :-( 1103 ;; two states :-(
1102 (tool-bar-local-item "mpc/pause" 'mpc-pause 'pause map 1104 (tool-bar-local-item "mpc/pause" 'mpc-pause 'pause map
1105 :label "Pause" :vert-only t
1103 :visible '(equal (cdr (assq 'state mpc-status)) "play") 1106 :visible '(equal (cdr (assq 'state mpc-status)) "play")
1104 :help "Pause/play") 1107 :help "Pause/play")
1105 (tool-bar-local-item "mpc/play" 'mpc-play 'play map 1108 (tool-bar-local-item "mpc/play" 'mpc-play 'play map
1109 :label "Play" :vert-only t
1106 :visible '(not (equal (cdr (assq 'state mpc-status)) "play")) 1110 :visible '(not (equal (cdr (assq 'state mpc-status)) "play"))
1107 :help "Play/pause") 1111 :help "Play/pause")
1108 ;; FIXME: how can we bind it to the down-event? 1112 ;; FIXME: how can we bind it to the down-event?
1109 (tool-bar-local-item "mpc/ffwd" 'mpc-ffwd 'ffwd map 1113 (tool-bar-local-item "mpc/ffwd" 'mpc-ffwd 'ffwd map
1110 :enable '(not (equal (cdr (assq 'state mpc-status)) "stop")) 1114 :enable '(not (equal (cdr (assq 'state mpc-status)) "stop"))
1115 :label "Ffwd" :vert-only t
1111 :button '(:toggle . (and mpc--faster-toggle-timer 1116 :button '(:toggle . (and mpc--faster-toggle-timer
1112 mpc--faster-toggle-forward))) 1117 mpc--faster-toggle-forward)))
1113 (tool-bar-local-item "mpc/next" 'mpc-next 'next map 1118 (tool-bar-local-item "mpc/next" 'mpc-next 'next map
1119 :label "Next" :vert-only t
1114 :enable '(not (equal (cdr (assq 'state mpc-status)) "stop"))) 1120 :enable '(not (equal (cdr (assq 'state mpc-status)) "stop")))
1115 (tool-bar-local-item "mpc/stop" 'mpc-stop 'stop map) 1121 (tool-bar-local-item "mpc/stop" 'mpc-stop 'stop map
1122 :label "Stop" :vert-only t)
1116 (tool-bar-local-item "mpc/add" 'mpc-playlist-add 'add map 1123 (tool-bar-local-item "mpc/add" 'mpc-playlist-add 'add map
1124 :label "Add" :vert-only t
1117 :help "Append to the playlist") 1125 :help "Append to the playlist")
1118 map)) 1126 map))
1119 1127