Hi,
my task is on Linux 2.6.8 with gcc 3.3.5 using the mozilla code from cvs (checked out yesterday).
I have an existing application and a XmForm w_form, i wish to place gecko as a child of my w_form (same process).
My first approach with:
------------------------------------------ // Window Id from X11-motif parent widget guint32 xid = XtWindow(w_form);
GtkWidget *gtkRoot = gtk_plug_new(xid);
GtkWidget *vbox = gtk_vbox_new (FALSE, 0); gtk_container_add(GTK_CONTAINER(gtkRoot), vbox); gtk_widget_show(vbox);
GtkWidget *mozEmbed = gtk_moz_embed_new(); gtk_box_pack_start(GTK_BOX(vbox), mozEmbed, TRUE, TRUE, 0);
... ------------------------------------------
worked with GTK 1.2.
But with GTK 2.0 no mozilla is visible!!!
Has anybody solved this issue?
- Why does gtk 2.0 behave different?
1. With gtk 1.2 i could embed a xclock like "TestGtkEmbedChild 0x7c0000a"
with gtk 2.0 this fails.
2. Using TestGtkEmbedSocket with gtk 2.0 however works fine
and is able to embedd TestGtkEmbedChild.- How can i merge the two event loops if i ever get to run it?
- How can i pass the xid (X-Window ID) directly to gtk_container_add() without
using gtk_plug_new(xid) as i'm in the same process?
Thank you for some hints or code snippets
Marcel
_______________________________________________ mozilla-embedding mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-embedding
