Enlightenment CVS committal
Author : tsauerbeck
Project : e17
Module : apps/euphoria
Dir : e17/apps/euphoria/lib
Modified Files:
playlist.rb
Log Message:
more ducktyping goodness
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/lib/playlist.rb,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -3 -r1.27 -r1.28
--- playlist.rb 17 Jun 2005 12:19:34 -0000 1.27
+++ playlist.rb 7 Jul 2005 19:59:22 -0000 1.28
@@ -1,4 +1,4 @@
-# $Id: playlist.rb,v 1.27 2005/06/17 12:19:34 tsauerbeck Exp $
+# $Id: playlist.rb,v 1.28 2005/07/07 19:59:22 tsauerbeck Exp $
require "euphoria/playlist_item"
@@ -32,13 +32,13 @@
end
@xmms.broadcast_playlist_changed.notifier do |res|
- case res.value[:type].to_i
+ case res.value[:type]
when XmmsClient::Result::PLAYLIST_CHANGED_ADD
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[res.value[:position].to_i])
+ delete(self[res.value[:position]])
when XmmsClient::Result::PLAYLIST_CHANGED_CLEAR
clear
end
-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs