Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : apps/euphoria
Dir : e17/apps/euphoria/lib Modified Files: playlist.rb playlist_item.rb Log Message: need to explicitly remove elements from the container =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/euphoria/lib/playlist.rb,v retrieving revision 1.15 retrieving revision 1.16 diff -u -3 -r1.15 -r1.16 --- playlist.rb 7 May 2005 16:36:50 -0000 1.15 +++ playlist.rb 8 May 2005 14:37:09 -0000 1.16 @@ -1,4 +1,4 @@ -# $Id: playlist.rb,v 1.15 2005/05/07 16:36:50 tsauerbeck Exp $ +# $Id: playlist.rb,v 1.16 2005/05/08 14:37:09 tsauerbeck Exp $ require "euphoria/playlist_item" @@ -129,12 +129,12 @@ item = find { |i| i.id == item } end - item.hide if i.visible? + item.hide(@container) if i.visible? super(item) end def clear - each { |i| i.hide if i.visible? } + each { |i| i.hide(@container) if i.visible? } super end =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/euphoria/lib/playlist_item.rb,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- playlist_item.rb 2 May 2005 17:07:32 -0000 1.5 +++ playlist_item.rb 8 May 2005 14:37:09 -0000 1.6 @@ -1,4 +1,4 @@ -# $Id: playlist_item.rb,v 1.5 2005/05/02 17:07:32 tsauerbeck Exp $ +# $Id: playlist_item.rb,v 1.6 2005/05/08 14:37:09 tsauerbeck Exp $ class PlaylistItem attr_reader :id, :edje @@ -76,8 +76,8 @@ [EMAIL PROTECTED] end - def hide - @edje.delete + def hide(container) + 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 enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs