Enlightenment CVS committal

Author  : tsauerbeck
Project : e17
Module  : apps/euphoria

Dir     : e17/apps/euphoria/bin


Modified Files:
        euphoria 


Log Message:
move playlist_list and playlist_changed code to the playlist class
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/bin/euphoria,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- euphoria    27 Apr 2005 18:03:04 -0000      1.5
+++ euphoria    27 Apr 2005 20:09:17 -0000      1.6
@@ -1,6 +1,6 @@
 #!/usr/bin/ruby -w
 
-# $Id: euphoria,v 1.5 2005/04/27 18:03:04 tsauerbeck Exp $
+# $Id: euphoria,v 1.6 2005/04/27 20:09:17 tsauerbeck Exp $
 
 require "ecore"
 require "ecore_x"
@@ -224,25 +224,6 @@
                        end
                end
 
-               @xmms.playlist_list.notifier do |res|
-                       @playlist.push(*res.value)
-               end
-
-               @xmms.broadcast_playlist_changed.notifier do |res|
-                       type, id, arg = res.playlist_change
-
-                       case type
-                               when XmmsClient::Result::PLAYLIST_CHANGED_ADD
-                                       @playlist << id
-                               when XmmsClient::Result::PLAYLIST_CHANGED_REMOVE
-                                       # the daemon sends the position of the 
song, not the
-                                       # unique mlib id
-                                       @playlist.delete(@playlist[id])
-                               when XmmsClient::Result::PLAYLIST_CHANGED_CLEAR
-                                       @playlist.clear
-                       end
-               end
-
                @xmms.broadcast_playlist_current_pos.notifier do |res|
                        handle_current_pos(res)
                end




-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to