On Mar 7, 2:46 pm, "krithika" <[EMAIL PROTECTED]> wrote:
> Hi folks,
>
> We are trying to embed gecko from java using javaxpcom in Linux.I have
> not been successful so far.
>
> We do a JNI call which create a GTKWidget as shown below.This
> GtkWidget handle is being given to baseWindow.initWindow from my java
> code.
>
> This is not working?
>
> Can someone throw some light as to whether this is possible in the
> first place.
>
> gtk_init(NULL,NULL);
>  window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
>  /*-- Display the window --*/
> gtk_widget_realize(window);
>  area=gtk_hbox_new (FALSE, 10);
>  gtk_container_add(GTK_CONTAINER(window),area);
>  gtk_widget_realize(area);
>  gtk_widget_show(area);
>  gtk_main();
>
> and return area to the java code via JNI.

I don't understand your use of gtk_main()

http://mxr.landfill.bugzilla.org/gnome/source/libgtk-java/src/java/org/gnu/gtk/Gtk.java#78

Seems to indicate you're using it wrong. And given that
java.org.gnu.gtk.Gtk exists, I have to ask why you don't just use it.

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

Reply via email to