X-Git-Url: http://git.code-monkey.de/?p=euphoria.git;a=blobdiff_plain;f=lib%2Fplaylist_item.rb;h=91b5bea1024bc8e86566c29772378a9fd1394e29;hp=f3d397f0de97b62e9ba86dc09891ecddfe2186d5;hb=07bd2ad097ccf77fbe0a6679c2335e906f48866a;hpb=12d14c472fdb872efc6d657852346ee7ee8092b1 diff --git a/lib/playlist_item.rb b/lib/playlist_item.rb index f3d397f..91b5bea 100644 --- a/lib/playlist_item.rb +++ b/lib/playlist_item.rb @@ -1,5 +1,3 @@ -# $Id: playlist_item.rb,v 1.21 2006/07/29 01:55:31 tilman Exp $ - class PlaylistItem attr_reader :id, :edje, :position, :selected, :hilighted @@ -116,6 +114,14 @@ class PlaylistItem set_parts_text unless @edje.nil? end + def track_info_message + unless @props[:channel].nil? + Edje::Message.new(0, channel) + else + Edje::Message.new(0, artist, title, album) + end + end + private def set_parts_text tmp = (duration == -1) ? "" :