Author: bklaas
Date: Sat May 17 06:43:32 2008
New Revision: 2475

URL: http://svn.slimdevices.com?rev=2475&root=Jive&view=rev
Log:
Bug: 6561
Description: allow window properties to be set by incoming browseSink data

Modified:
    
7.1/trunk/squeezeplay/src/squeezeplay/share/applets/SlimBrowser/SlimBrowserApplet.lua

Modified: 
7.1/trunk/squeezeplay/src/squeezeplay/share/applets/SlimBrowser/SlimBrowserApplet.lua
URL: 
http://svn.slimdevices.com/7.1/trunk/squeezeplay/src/squeezeplay/share/applets/SlimBrowser/SlimBrowserApplet.lua?rev=2475&root=Jive&r1=2474&r2=2475&view=diff
==============================================================================
--- 
7.1/trunk/squeezeplay/src/squeezeplay/share/applets/SlimBrowser/SlimBrowserApplet.lua
 (original)
+++ 
7.1/trunk/squeezeplay/src/squeezeplay/share/applets/SlimBrowser/SlimBrowserApplet.lua
 Sat May 17 06:43:32 2008
@@ -810,8 +810,16 @@
                        step.menu:setItems(step.db:menuItems(data))
 
                        -- update the window properties
-                       -- TODO add more properties here
                        step.menu:setStyle(step.db:menuStyle())
+                       if data.window then
+                               if data.window.text then
+                                       step.window:setTitle(data.window.text)
+                               end
+                               --FIXME-- if the existing style had an icon, 
changing the style does not remove it
+                               if data.window.titleStyle then
+                                       
step.window:setTitleStyle(data.window.titleStyle .. 'title')
+                               end
+                       end
 
                        -- what's missing?
                        local from, qty = 
step.db:missing(step.menu:isAccelerated())

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

Reply via email to