Bug 5885 - can't use jive.ui.Window.setTitleWidget method from within SlimBrowserApplet.lua or JiveMain.lua
: can't use jive.ui.Window.setTitleWidget method from within SlimBrowserApplet....
Status: CLOSED FIXED
Product: SB Controller
Classification: Unclassified
Component: UI
: unspecified
: Macintosh Other
: P2 normal (vote)
: 7.0
Assigned To: Richard Titmuss
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-10-22 14:01 UTC by Ben Klaas
Modified: 2009-09-08 09:19 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Klaas 2007-10-22 14:01:42 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") 
                                }
                                )
                        )
                        --]]
Comment 1 Ben Klaas 2007-10-22 14:04:40 UTC
I should clarify, in the second example, I can set the title style, but all keys are unresponsive just as in JiveMain
Comment 2 Ben Klaas 2007-11-16 13:28:30 UTC
*** Bug 6175 has been marked as a duplicate of this bug. ***
Comment 3 Richard Titmuss 2007-11-27 06:09:32 UTC
Fixed in r1009.
Comment 4 James Richardson 2008-05-15 12:59:58 UTC
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