Accept state signals from any source.
[multipass-eu.git] / src / playlist-background.rb
index 9749e457a4acbd4d0b4112801e1ba55ce1f79555..6226f64f259efdab9d5e4a2b32bcf54e42777c0f 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: playlist-background.rb 6 2005-04-24 09:36:27Z tilman $
+# $Id: playlist-background.rb 16 2005-04-25 22:01:53Z tilman $
 
 c = EDJE.collection("playlist")
 root = c.part("root")
@@ -196,7 +196,7 @@ c.part("playlist.background.bottom", :image) do |p|
        end
 end
 
-c.part("playlist.container", :image) do |p|
+c.part("playlist.background.middle", :image) do |p|
        p.description do |d|
                d.rel[0].set_to(c.part("playlist.background.top.left"))
                d.rel[1].set_to(c.part("playlist.background.bottom.right"))
@@ -207,3 +207,13 @@ c.part("playlist.container", :image) do |p|
                d.image = "images/background-main-middle.png"
        end
 end
+
+c.part("playlist.container", :swallow) do |p|
+       p.description do |d|
+               d.rel[0].set_to(c.part("playlist.background.middle"))
+               d.rel[1].set_to(c.part("playlist.background.middle"))
+
+               # leave some space for the scrollbar
+               d.rel[1].set_offset(-19, -1)
+       end
+end