On Mar 7, 12:28 am, Eli Friedman <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > I too have the same requirement. I use JavaXPCOM.
>
> > In windows i used a dummy number for window handle (first parameter)
> > for the call
> > nsBaseWindow::initWindow(long, long, long, long, long, long);
>
> Yeah, that won't work... a lot of code depends on the existence of a
> widget to function correctly.  What you're trying to do might be
> possible with Gecko 1.9, but for now you'll have to create a widget.
> This of course means you need an X server; xvfb should be sufficient.


Yes we have created a widget with gtkwidget and we are returning the
gtkwidget* via JNI to our java code.This gtkwidget* is used as the
first argument in BaseWindow.InitWindow() as shown;

// int HWND = getHWND() // gtkwidget* is returned to HWND via JNI
baseWindow.initWindow(HWND,....)

our xulrunner version - 1.8.0.4

We are using xserver to run the widget.Is it possible for you to
provide us a working code that creates a widget and returns the
appropriate handle to java.

regards,
Krth








_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to