Bugzilla – Bug 5885
can't use jive.ui.Window.setTitleWidget method from within SlimBrowserApplet.lua or JiveMain.lua
Last modified: 2009-09-08 09:19:23 UTC
If I try to set title styles with setTitleWidget in either JiveMain.lua or SlimBrowerApplet.lua, the Jive stops responding to key presses. in JiveMain:__init(), I try to set the title style like so-- -- create our object (a subclass of JiveMainMenu) jiveMain = oo.rawnew(self, JiveMainMenu('', "home.window")) -- this causes all keys to be unresponsive. jiveMain.window:setTitleWidget( jive.ui.Group( "hometitle", { text = jive.ui.Label("text", _globalStrings:str("JIVE_HOME")), icon = jive.ui.Icon("icon") } ) ) Everything renders to the window correctly, but the device no longer registers any key presses when this window is loaded. Similarly, in SlimBrowserApplet, I can't set a title style through setTitleWidget in the playlist window-- roundabout line 750: if data.mode == "play" then step.window:setTitle(_string("SLIMBROWSER_NOW_PLAYING")) --[[ this causes the window to not exit in either direction step.window:setTitleWidget( Group( "newmusictitle", { text = Label("text", _string("SLIMBROWSER_NOW_PLAYING")), icon = Icon("icon") } ) ) --]]
I should clarify, in the second example, I can set the title style, but all keys are unresponsive just as in JiveMain
*** Bug 6175 has been marked as a duplicate of this bug. ***
Fixed in r1009.
This bug has recently been fixed in the latest release of SqueezeCenter 7.0.1 Please try that version, if you still see the error, then reopen this bug. To download this version, please navigate to: http://www.slimdevices.com/su_downloads.html