-# $Id: playlist_item.rb 9 2005-04-24 15:44:54Z tilman $
+# $Id: playlist_item.rb 11 2005-04-24 18:00:39Z tilman $
TEXT_COLOR_HILIGHT = "#f0fafd"
["selected", "unselected"].each do |state|
c.program("playlist_item.#{state}", :set_state) do |p|
- p.signal = "PLAYLIST_ITEM_#{state.upcase}"
+ p.signal = "playlist_item.#{state}"
p.state = state == "unselected" ? "default" : state
p.mode = state == "selected" ? :accelerate : :decelerate
p.time = 0.5
p.targets << ProgramTarget.new(c.part("length"))
end
end
+
+ c.program("playlist_item.doubleclick", :emit_signal) do |p|
+ p.signal = "mouse,down,1,double"
+ p.source = "*"
+ p.emission_signal = "playlist_item.play"
+ end
end