Author: bklaas
Date: Thu Jan 24 13:56:43 2008
New Revision: 1616
URL: http://svn.slimdevices.com?rev=1616&root=Jive&view=rev
Log:
Bug: 6177, 6200, 5661
Description: add support for nextWindow = 'parent', which will cause a
SlimBrowser action to hide the current window and show the previous
Modified:
branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua
Modified:
branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua
URL:
http://svn.slimdevices.com/branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua?rev=1616&root=Jive&r1=1615&r2=1616&view=diff
==============================================================================
---
branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua
(original)
+++
branches/7.0/jive/src/pkg/jive/share/applets/SlimBrowser/SlimBrowserApplet.lua
Thu Jan 24 13:56:43 2008
@@ -555,6 +555,13 @@
popup:addWidget(icon)
popup:show()
return popup
+end
+
+-- _hideMe
+-- hides the top window
+local function _hideMe(step)
+ Framework:playSound("WINDOWHIDE")
+ step.window:hide()
end
-- _goNowPlaying
@@ -1077,6 +1084,8 @@
sink = _goPlaylist
elseif item['nextWindow'] == 'home' then
sink = goHome
+ elseif item['nextWindow'] == 'parent' then
+ sink = _hideMe(_curStep)
elseif item["showBigArtwork"] then
sink = _bigArtworkPopup
elseif actionName == 'go' then
@@ -1566,7 +1575,7 @@
local windowStack = Framework.windowStack
Framework:playSound("JUMP")
while #windowStack > 1 do
- windowStack[#windowStack - 1]:hide(nil, "JUMP")
+ windowStack[#windowStack - 1]:hide()
end
end
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins