Enlightenment CVS committal
Author : tsauerbeck
Project : e17
Module : apps/euphoria
Dir : e17/apps/euphoria/lib
Modified Files:
playlist.rb playlist_item.rb
Log Message:
don't try to hide a playlist item if it's not visible
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/lib/playlist.rb,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- playlist.rb 25 Apr 2005 21:58:26 -0000 1.4
+++ playlist.rb 26 Apr 2005 16:02:26 -0000 1.5
@@ -1,4 +1,4 @@
-# $Id: playlist.rb,v 1.4 2005/04/25 21:58:26 tsauerbeck Exp $
+# $Id: playlist.rb,v 1.5 2005/04/26 16:02:26 tsauerbeck Exp $
require "euphoria/playlist_item"
@@ -108,12 +108,12 @@
item = find { |i| i.id == item }
end
- item.hide
+ item.hide if i.visible?
super(item)
end
def clear
- each { |i| i.hide }
+ each { |i| i.hide if i.visible? }
super
end
end
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/lib/playlist_item.rb,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- playlist_item.rb 24 Apr 2005 22:33:15 -0000 1.1
+++ playlist_item.rb 26 Apr 2005 16:02:27 -0000 1.2
@@ -1,4 +1,4 @@
-# $Id: playlist_item.rb,v 1.1 2005/04/24 22:33:15 tsauerbeck Exp $
+# $Id: playlist_item.rb,v 1.2 2005/04/26 16:02:27 tsauerbeck Exp $
class PlaylistItem
attr_reader :id, :edje
@@ -70,6 +70,12 @@
@edje.emit_signal("playlist_item.selected", "") unless
@edje.nil?
end
+ def visible?
+ # since we don't actually hide the edje, but just delete it,
+ # we don't need to check @edje.visible? here
+ [EMAIL PROTECTED]
+ end
+
def hide
@edje.delete
@edje = nil
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs