(I've cross-posted this to the two newsgroups I think could help solve 
my problem, feel free to reply to just one group)

Ok, I may be completely missing something here, and feel free to point 
that out, but here's my problem:

I'm writting JavaScript in an XUL overlay, and I can't seem to find an 
easy was to get the name of the current theme - the nsIChromeRegistry 
XPCOM interface doesn't even seem to be able to *list* the theme, let 
alone tell me the current one (according to the IDL file in LXR).

I know that (using RDF in XUL) I can generate a list of the themes as 
nodes in the document (since the themes pref pane does it, for example), 
and then can check each one with a nsIChromeRegistry::isSkinSelected 
call. But this is not even remotely elegant (not that what I've done 
already is elegant, mind), and I'm sure there must be some easier way to 
do this.

Any help would be greatly appreciated, thanks.

-- 
James Ross <[EMAIL PROTECTED]>
Webmaster, The University of Warwick Computing Society
http://www.warwickcompsoc.co.uk/

'Hello World', 17 errors, 31 warnings.
                     -- Bugzilla (bugzilla.mozilla.org) quip list


Reply via email to