From: Tilman Sauerbeck Date: Sat, 28 May 2005 21:23:33 +0000 (+0000) Subject: Accept state signals from any source. X-Git-Url: http://git.code-monkey.de/?p=multipass-eu.git;a=commitdiff_plain;h=fa714bae987a969d91ae24625283f9d4eaae5e40 Accept state signals from any source. --- diff --git a/src/playlist_item.rb b/src/playlist_item.rb index c3ab305..ffd58e4 100644 --- a/src/playlist_item.rb +++ b/src/playlist_item.rb @@ -1,4 +1,4 @@ -# $Id: playlist_item.rb 23 2005-05-28 19:59:03Z tilman $ +# $Id: playlist_item.rb 25 2005-05-28 21:23:33Z tilman $ TEXT_COLOR_HILIGHT = "#f0fafd" @@ -50,6 +50,7 @@ EDJE.collection("playlist_item") do |c| ["hilighted", "unhilighted"].each do |state| c.program("playlist_item.#{state}", :set_state) do |p| p.signal = "playlist_item.#{state}" + p.source = "*" p.state = state == "unselected" ? "default" : state p.mode = state == "selected" ? :accelerate : :decelerate p.time = 0.5 @@ -61,6 +62,7 @@ EDJE.collection("playlist_item") do |c| ["selected", "unselected"].each do |state| c.program("playlist_item.#{state}", :set_state) do |p| p.signal = "playlist_item.#{state}" + p.source = "*" p.state = state p.targets << ProgramTarget.new(c.part("background")) end