Enlightenment CVS committal

Author  : tsauerbeck
Project : e17
Module  : apps/euphoria

Dir     : e17/apps/euphoria/lib


Modified Files:
        playlist_item.rb 


Log Message:
propdict changes
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/lib/playlist_item.rb,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -3 -r1.16 -r1.17
--- playlist_item.rb    29 May 2005 17:16:10 -0000      1.16
+++ playlist_item.rb    14 Dec 2005 20:02:14 -0000      1.17
@@ -1,4 +1,4 @@
-# $Id: playlist_item.rb,v 1.16 2005/05/29 17:16:10 tsauerbeck Exp $
+# $Id: playlist_item.rb,v 1.17 2005/12/14 20:02:14 tsauerbeck Exp $
 
 class PlaylistItem
        attr_reader :id, :edje, :position, :selected, :hilighted
@@ -23,7 +23,9 @@
        end
 
        def method_missing(method)
-               @props[method]
+               tmp = @props[method]
+
+               tmp || @props[:server][method] || "default"
        end
 
        def duration
@@ -107,7 +109,6 @@
 
        def properties=(hash)
                @props = hash || {}
-               @props.default = "unknown"
 
                set_parts_text unless @edje.nil?
        end




-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to