Enlightenment CVS committal
Author : tsauerbeck
Project : e17
Module : apps/euphoria
Dir : e17/apps/euphoria/lib
Modified Files:
playlist.rb playlist_item.rb
Log Message:
api cleanup
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/lib/playlist.rb,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- playlist.rb 8 May 2005 14:37:09 -0000 1.16
+++ playlist.rb 8 May 2005 14:43:18 -0000 1.17
@@ -1,8 +1,10 @@
-# $Id: playlist.rb,v 1.16 2005/05/08 14:37:09 tsauerbeck Exp $
+# $Id: playlist.rb,v 1.17 2005/05/08 14:43:18 tsauerbeck Exp $
require "euphoria/playlist_item"
class Playlist < Array
+ attr_reader :container
+
def initialize(xmms, on_cur_item_changed)
super()
@@ -129,12 +131,12 @@
item = find { |i| i.id == item }
end
- item.hide(@container) if i.visible?
+ item.hide if i.visible?
super(item)
end
def clear
- each { |i| i.hide(@container) if i.visible? }
+ each { |i| i.hide if i.visible? }
super
end
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/lib/playlist_item.rb,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -3 -r1.6 -r1.7
--- playlist_item.rb 8 May 2005 14:37:09 -0000 1.6
+++ playlist_item.rb 8 May 2005 14:43:18 -0000 1.7
@@ -1,4 +1,4 @@
-# $Id: playlist_item.rb,v 1.6 2005/05/08 14:37:09 tsauerbeck Exp $
+# $Id: playlist_item.rb,v 1.7 2005/05/08 14:43:18 tsauerbeck Exp $
class PlaylistItem
attr_reader :id, :edje
@@ -76,8 +76,8 @@
[EMAIL PROTECTED]
end
- def hide(container)
- container.remove_element(@edje)
+ def hide
+ @playlist.container.remove_element(@edje)
@edje = nil
end
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs