Enlightenment CVS committal
Author : tilman
Project : e17
Module : apps/euphoria
Dir : e17/apps/euphoria/lib
Modified Files:
playlist_item.rb
Log Message:
support tracks with no duration (such as streams, patch by Alexander
Botero-Lowry)
===================================================================
RCS file: /cvs/e/e17/apps/euphoria/lib/playlist_item.rb,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -3 -r1.20 -r1.21
--- playlist_item.rb 29 Jul 2006 01:34:31 -0000 1.20
+++ playlist_item.rb 29 Jul 2006 01:55:31 -0000 1.21
@@ -1,4 +1,4 @@
-# $Id: playlist_item.rb,v 1.20 2006/07/29 01:34:31 tilman Exp $
+# $Id: playlist_item.rb,v 1.21 2006/07/29 01:55:31 tilman Exp $
class PlaylistItem
attr_reader :id, :edje, :position, :selected, :hilighted
@@ -118,8 +118,9 @@
private
def set_parts_text
- @edje.part("duration").text =
- "%i:%02i" % [duration / 60, duration % 60]
+ tmp = (duration == -1) ? "" :
+ ("%i:%02i" % [duration / 60, duration % 60])
+ @edje.part("duration").text = tmp
@edje.part("title").text = "%i %s - %s" % [EMAIL PROTECTED] +
1, artist, title]
end
end
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs