+# $Id: playlist-buttons.rb 7 2005-04-24 10:46:14Z tilman $
+
+c = EDJE.collection("playlist")
+root = c.part("root")
+right = c.part("playlist.background.titlebar.right")
+
+buttons = []
+
+h = {"playlist.button.close" => ["close", [right, -10, 5]],
+ "playlist.button.switch" => [nil, [right, -30, 5]],
+ "playlist.button.system" => [nil, [root, 5, 5]]}
+h.each do |name, (sig, (rel, x, y))|
+ args = [c, name, rel, image_from_name(name), x, y]
+ args << sig unless sig.nil?
+
+ buttons << (sig.nil? ? Button : SignalButton).new(*args).part
+end