On Mon, Jun 30, 2008 at 12:51 PM, Vlad <
b100dian@...> wrote:
> Hello,
>
> I am trying to both build a XUL(runner) application _and_ embed
> XULRunner from C++ (with possibly some custom XPCOM components).
>
> For what I see, all the examples are for embedding a Gecko rendering
> window.
>
> So my question is, is it possible to embed XULRunner which runs a XUL
> application?
>
> (p.s. What is the second parameter to XRE_InitEmbedding? is it the
> profile directory or the path to the application.ini?)
>
Just so that I can answer my own question;)
The second parameter to XRE_InitEmbedding is indeed the path to a XUL
application.
To start the application you need to make your nsWebBrowser navigate to a
valid chrome:// url
For example, use /usr/lib/firefox-3.0[.1] as the second parameter to
XRE_InitEmbedding *and* navigate to chrome://browser/content/browser.xul to
actually start the browser (firefox) application.
Cheers,
Vlad
_______________________________________________
dev-embedding mailing list
dev-embedding@...
https://lists.mozilla.org/listinfo/dev-embedding