@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