On 23/09/2006 00:14, HJ van Rantwijk wrote:
> Neil wrote:

>> SeaMonkey also has a XULAppInfo implementation.

> Ok, and how do we use it?  I can't find nsIXULAppInfo.idl in SeaMonkey.

Example:

AHSprefMan.prototype.isSeaMonkey = function()
{
  const SEAMONKEY_ID = "{92650c4d-4b8e-4d2a-b7eb-24ecf4f6b63a}";
  var nsIXULAppInfo = Components.classes["@mozilla.org/xre/app-info;1"]
                      .getService(Components.interfaces.nsIXULAppInfo);
  return (nsIXULAppInfo.ID == SEAMONKEY_ID);
}

Phil
-- 
Philip Chee <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
http://flashblock.mozdev.org/ http://xsidebar.mozdev.org
Guard us from the she-wolf and the wolf, and guard us from the thief,
oh Night, and so be good for us to pass.
[ ]C++ programmers do it with class.
* TagZilla 0.059
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to