Enlightenment CVS committal Author : tsauerbeck Project : e17 Module : apps/euphoria
Dir : e17/apps/euphoria/lib Modified Files: playlist.rb Log Message: update playlist entries on change =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/euphoria/lib/playlist.rb,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- playlist.rb 27 Apr 2005 18:03:04 -0000 1.6 +++ playlist.rb 27 Apr 2005 20:05:14 -0000 1.7 @@ -1,4 +1,4 @@ -# $Id: playlist.rb,v 1.6 2005/04/27 18:03:04 tsauerbeck Exp $ +# $Id: playlist.rb,v 1.7 2005/04/27 20:05:14 tsauerbeck Exp $ require "euphoria/playlist_item" @@ -21,6 +21,15 @@ @current_pos = res.value current_item.hilight end + + @xmms.broadcast_medialib_entry_changed.notifier do |res| + @xmms.medialib_get_info(res.value).notifier do |res2| + props = res.value + find_all { |i| i.id == props[:id] }.each do |item| + item.properties = props + end + end + end end def current_item ------------------------------------------------------- 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 enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs