krithika wrote:
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.

I really haven't done much coding in terms of embedding or GTK, so I'm probably not the best person to ask. (Comments from someone more experienced in this area would be welcome.) That said, it definitely sounds like you're passing in a pointer to something that's not a valid object. Maybe you forgot to initialize it or something?
_______________________________________________
dev-embedding mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to