From: Tilman Sauerbeck Date: Mon, 24 Dec 2007 20:49:51 +0000 (+0100) Subject: Use new Xmms::Playlist:: constants instead of Xmms::Result::PLAYLISY_*. X-Git-Url: http://git.code-monkey.de/?p=euphoria.git;a=commitdiff_plain;h=99062e9e19c33dc97601a86e0b23c9a10a5d05fd;ds=sidebyside Use new Xmms::Playlist:: constants instead of Xmms::Result::PLAYLISY_*. --- diff --git a/lib/playlist.rb b/lib/playlist.rb index b8b6406..d1fe2ff 100644 --- 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