Author: bklaas
Date: Wed Sep  3 09:55:55 2008
New Revision: 2903

URL: http://svn.slimdevices.com?rev=2903&root=Jive&view=rev
Log:
Bug: 9259
Description: use service API to preview wallpaper on choose player window

Modified:
    
7.3/trunk/squeezeplay/src/squeezeplay/share/applets/SelectPlayer/SelectPlayerApplet.lua
    
7.3/trunk/squeezeplay/src/squeezeplay/share/applets/SetupWallpaper/SetupWallpaperMeta.lua

Modified: 
7.3/trunk/squeezeplay/src/squeezeplay/share/applets/SelectPlayer/SelectPlayerApplet.lua
URL: 
http://svn.slimdevices.com/7.3/trunk/squeezeplay/src/squeezeplay/share/applets/SelectPlayer/SelectPlayerApplet.lua?rev=2903&root=Jive&r1=2902&r2=2903&view=diff
==============================================================================
--- 
7.3/trunk/squeezeplay/src/squeezeplay/share/applets/SelectPlayer/SelectPlayerApplet.lua
 (original)
+++ 
7.3/trunk/squeezeplay/src/squeezeplay/share/applets/SelectPlayer/SelectPlayerApplet.lua
 Wed Sep  3 09:55:55 2008
@@ -43,9 +43,6 @@
 local jnt                = jnt
 local jiveMain           = jiveMain
 local appletManager      = appletManager
-
--- load SetupWallpaper for use in previewing Wallpapers
-local SetupWallpaper = appletManager:loadApplet("SetupWallpaper")
 
 module(..., Framework.constants)
 oo.class(_M, Applet)
@@ -272,7 +269,7 @@
 
 function _showWallpaper(self, playerId)
        log:info("previewing background wallpaper for ", playerId)
-       SetupWallpaper:showBackground(nil, playerId)
+       appletManager:callService("showBackground", nil, playerId)
 end
 
 
@@ -382,8 +379,6 @@
                self:_showWallpaper('wallpaper')
        end
        
-       appletManager:freeApplet("SetupWallpaper")
-
        -- Never free this applet
        return false
 end

Modified: 
7.3/trunk/squeezeplay/src/squeezeplay/share/applets/SetupWallpaper/SetupWallpaperMeta.lua
URL: 
http://svn.slimdevices.com/7.3/trunk/squeezeplay/src/squeezeplay/share/applets/SetupWallpaper/SetupWallpaperMeta.lua?rev=2903&root=Jive&r1=2902&r2=2903&view=diff
==============================================================================
--- 
7.3/trunk/squeezeplay/src/squeezeplay/share/applets/SetupWallpaper/SetupWallpaperMeta.lua
 (original)
+++ 
7.3/trunk/squeezeplay/src/squeezeplay/share/applets/SetupWallpaper/SetupWallpaperMeta.lua
 Wed Sep  3 09:55:55 2008
@@ -45,6 +45,7 @@
        local obj = appletManager:loadApplet("SetupWallpaper")
        obj:setBackground(nil) -- nil is default from settings
        appletManager:freeApplet("SetupWallpaper")
+       appletManager:registerService("showBackground")
 
        -- add a menu item for configuration
        jiveMain:addItem(meta:menuItem('appletSetupWallpaper', 
'screenSettings', 'WALLPAPER', function(applet, ...) applet:settingsShow(...) 
end))

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins

Reply via email to