Author: richard
Date: Tue Jan 20 02:56:48 2009
New Revision: 3893
URL: http://svn.slimdevices.com?rev=3893&root=Jive&view=rev
Log:
Bug: N/A
Description:
Allow scanning using the progress bar on now playing.
Modified:
7.4/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua
Modified:
7.4/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua
URL:
http://svn.slimdevices.com/7.4/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua?rev=3893&root=Jive&r1=3892&r2=3893&view=diff
==============================================================================
---
7.4/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua
(original)
+++
7.4/trunk/squeezeplay/src/squeezeplay/share/applets/NowPlaying/NowPlayingApplet.lua
Tue Jan 20 02:56:48 2009
@@ -538,9 +538,24 @@
text = Label("text", "\n\n\n")
})
end
+
+ if showProgressBar then
+ if not self.gotoTimer then
+ self.gotoTimer = Timer(400,
+ function()
+ if self.gotoElapsed then
+
self.player:gototime(self.gotoElapsed)
+ self.gotoElapsed = nil
+ end
+ end,
+ true)
+ end
- if showProgressBar then
- self[windowStyle].progressSlider = Slider(components.progressB,
0, 100, 0)
+ self[windowStyle].progressSlider = Slider(components.progressB,
0, 100, 0,
+ function(slider, value, done)
+ self.gotoElapsed = value
+ self.gotoTimer:restart()
+ end)
self[windowStyle].progressSlider:addTimer(1000, function()
self:_updatePosition() end)
self[windowStyle].progressGroup = Group(components.progress, {
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins