@eet = nil
@container = nil
- @xmms.playlist.entries.notifier { |res| push(*res.value) }
+ query_contents
@xmms.playlist.current_pos.notifier do |res|
begin
current_item.hilighted = true
end
+ @xmms.broadcast_playlist_loaded.
+ notifier(&method(:on_playlist_loaded))
+
@xmms.broadcast_playlist_changed.notifier do |res|
case res.value[:type]
when Xmms::Playlist::ADD
@ee.shaped = !@edje.data("shaped").nil?
end
+
+ def query_contents
+ @xmms.playlist.entries.notifier do |res|
+ push(*res.value)
+ end
+ end
+
+ def on_playlist_loaded(res)
+ clear
+ query_contents
+ end
end