Enlightenment CVS committal
Author : tsauerbeck
Project : e17
Module : apps/euphoria
Dir : e17/apps/euphoria/lib
Modified Files:
playlist.rb playlist_item.rb
Log Message:
add 'hilighted' flag to PlaylistItem. when we get the current pos message,
unhilight the current item and hilight the new one
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/lib/playlist.rb,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -3 -r1.24 -r1.25
--- playlist.rb 28 May 2005 21:24:33 -0000 1.24
+++ playlist.rb 29 May 2005 17:16:10 -0000 1.25
@@ -1,4 +1,4 @@
-# $Id: playlist.rb,v 1.24 2005/05/28 21:24:33 tsauerbeck Exp $
+# $Id: playlist.rb,v 1.25 2005/05/29 17:16:10 tsauerbeck Exp $
require "euphoria/playlist_item"
@@ -24,6 +24,7 @@
@xmms.broadcast_playlist_current_pos.notifier do |res|
@current_pos = res.value
+ find { |i| i.hilighted }.hilighted = false
current_item.hilighted = true
end
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/euphoria/lib/playlist_item.rb,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -3 -r1.15 -r1.16
--- playlist_item.rb 28 May 2005 21:24:33 -0000 1.15
+++ playlist_item.rb 29 May 2005 17:16:10 -0000 1.16
@@ -1,7 +1,7 @@
-# $Id: playlist_item.rb,v 1.15 2005/05/28 21:24:33 tsauerbeck Exp $
+# $Id: playlist_item.rb,v 1.16 2005/05/29 17:16:10 tsauerbeck Exp $
class PlaylistItem
- attr_reader :id, :edje, :position, :selected
+ attr_reader :id, :edje, :position, :selected, :hilighted
def initialize(id, xmms, playlist)
@id = id
@@ -13,6 +13,7 @@
@edje = nil
@height = 0
@selected = false
+ @hilighted = false
@props = {}
@@ -75,6 +76,8 @@
end
def hilighted=(b)
+ @hilighted = b
+
sig = b ? "hilighted" : "unhilighted"
unless @edje.nil?
@edje.emit_signal("playlist_item.#{sig}", "Euphoria")
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs