projects
/
euphoria.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a399322
)
Use new Xmms::Playlist:: constants instead of Xmms::Result::PLAYLISY_*.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Mon, 24 Dec 2007 20:49:51 +0000
(21:49 +0100)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Mon, 24 Dec 2007 20:49:51 +0000
(21:49 +0100)
lib/playlist.rb
patch
|
blob
|
history
diff --git
a/lib/playlist.rb
b/lib/playlist.rb
index b8b6406019d0c034b350d7b63bd1f988b425ca7e..d1fe2ff8bafbdcf8c13e96db1221627b829f7870 100644
(file)
--- a/
lib/playlist.rb
+++ b/
lib/playlist.rb
@@
-33,13
+33,13
@@
class Playlist < Array
@xmms.broadcast_playlist_changed.notifier do |res|
case res.value[:type]
- when Xmms::
Result::PLAYLIST_CHANGED_
ADD
+ when Xmms::
Playlist::
ADD
self << res.value[:id]
- when Xmms::
Result::PLAYLIST_CHANGED_
REMOVE
+ when Xmms::
Playlist::
REMOVE
# the daemon sends the position of the song, not the
# unique mlib id
delete(self[res.value[:position]])
- when Xmms::
Result::PLAYLIST_CHANGED_
CLEAR
+ when Xmms::
Playlist::
CLEAR
clear
end
end