Enlightenment CVS committal
Author : tsauerbeck
Project : e17
Module : apps/euphoria
Dir : e17/apps/euphoria/bin
Modified Files:
euphoria
Log Message:
tell the main window/app about playlist item updates
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/bin/euphoria,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- euphoria 27 Apr 2005 20:17:33 -0000 1.7
+++ euphoria 27 Apr 2005 20:28:33 -0000 1.8
@@ -1,6 +1,6 @@
#!/usr/bin/ruby -w
-# $Id: euphoria,v 1.7 2005/04/27 20:17:33 tsauerbeck Exp $
+# $Id: euphoria,v 1.8 2005/04/27 20:28:33 tsauerbeck Exp $
require "ecore"
require "ecore_x"
@@ -36,7 +36,8 @@
init_xmms
init_gui
- @playlist = Playlist.new(@xmms)
+ blk = lambda { |item| ui_fill_track_info(item) }
+ @playlist = Playlist.new(@xmms, blk)
setup_callbacks
@@ -227,34 +228,7 @@
@xmms.broadcast_playlist_current_pos.notifier do |res|
handle_current_pos(res)
end
-
-=begin
- @xmms.broadcast_medialib_entry_changed.notifier do |res|
- @xmms.medialib_get_info(res.uint).notifier do |res2|
- on_mlib_info(res2)
- end
- end
-=end
- end
-
-=begin
- def on_mlib_info(res)
- props = res.value
-
- id = props[:id].to_i
-
- item = @playlist[id]
- unless item.nil?
- item.properties = props
-
- # hack: if this item is current item,
- # refresh the edje parts
- if item == @playlist.current_item
- ui_fill_track_info(item)
- end
- end
end
-=end
def handle_current_pos(res)
begin
-------------------------------------------------------
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