Author: bklaas
Date: Wed Sep 3 14:09:18 2008
New Revision: 2904
URL: http://svn.slimdevices.com?rev=2904&root=Jive&view=rev
Log:
Bug: 9259, 7873
Description: don't load applet in meta file, instead register service and then
call it
Modified:
7.3/trunk/squeezeplay/src/squeezeplay/share/applets/SetupWallpaper/SetupWallpaperMeta.lua
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=2904&root=Jive&r1=2903&r2=2904&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 14:09:18 2008
@@ -41,11 +41,10 @@
function registerApplet(meta)
- -- load default wallpaper
- local obj = appletManager:loadApplet("SetupWallpaper")
- obj:setBackground(nil) -- nil is default from settings
- appletManager:freeApplet("SetupWallpaper")
- appletManager:registerService("showBackground")
+ meta:registerService("showBackground")
+ meta:registerService("setBackground")
+ -- load default wallpaper before connecting to a player (nil will load
default)
+ appletManager:callService("setBackground", nil)
-- 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