Enlightenment CVS committal
Author : tsauerbeck
Project : e17
Module : apps/euphoria
Dir : e17/apps/euphoria/lib
Modified Files:
playlist.rb
Log Message:
updated to new api. ie requires xmms2 > dr1.1
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/lib/playlist.rb,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -3 -r1.26 -r1.27
--- playlist.rb 4 Jun 2005 12:33:01 -0000 1.26
+++ playlist.rb 17 Jun 2005 12:19:34 -0000 1.27
@@ -1,4 +1,4 @@
-# $Id: playlist.rb,v 1.26 2005/06/04 12:33:01 tsauerbeck Exp $
+# $Id: playlist.rb,v 1.27 2005/06/17 12:19:34 tsauerbeck Exp $
require "euphoria/playlist_item"
@@ -32,15 +32,13 @@
end
@xmms.broadcast_playlist_changed.notifier do |res|
- type, id, arg = res.playlist_change
-
- case type
+ case res.value[:type].to_i
when XmmsClient::Result::PLAYLIST_CHANGED_ADD
- self << id
+ self << res.value[:id]
when XmmsClient::Result::PLAYLIST_CHANGED_REMOVE
# the daemon sends the position of the
song, not the
# unique mlib id
- delete(self[id])
+ delete(self[res.value[:position].to_i])
when XmmsClient::Result::PLAYLIST_CHANGED_CLEAR
clear
end
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs