Enlightenment CVS committal

Author  : tsauerbeck
Project : e17
Module  : apps/euphoria

Dir     : e17/apps/euphoria/lib


Modified Files:
        playlist.rb 


Log Message:
added Playlist#push and made Playlist#<< call push
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/lib/playlist.rb,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- playlist.rb 26 Apr 2005 16:02:26 -0000      1.5
+++ playlist.rb 27 Apr 2005 18:03:04 -0000      1.6
@@ -1,4 +1,4 @@
-# $Id: playlist.rb,v 1.5 2005/04/26 16:02:26 tsauerbeck Exp $
+# $Id: playlist.rb,v 1.6 2005/04/27 18:03:04 tsauerbeck Exp $
 
 require "euphoria/playlist_item"
 
@@ -97,10 +97,18 @@
        end
 
        def <<(id)
-               item = PlaylistItem.new(id, @xmms, self)
-               super(item)
+               push(id)
+       end
+
+       def push(*args)
+               args.each do |id|
+                       item = PlaylistItem.new(id, @xmms, self)
+                       super(item)
+
+                       item.show(@eet, @container) unless @container.nil?
+               end
 
-               item.show(@eet, @container) unless @container.nil?
+               self
        end
 
        def delete(item)




-------------------------------------------------------
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