Ari Heitner wrote:
> Why would you want to do this anyhow? I can see wanting to access Gtk widgets
> from Qt or vise versa, but why from Xt?
Because my task was to embed Mozilla in a Motif based application.
Motif is based on Xt.
> More directly, it should be a reasonable hack to take say ... the gtkEmbed code
> and just port that embedding over to Xt (to get a direct embedding, rather than
> an Xt widget). iirc the mozilla part of gtkEmbed doesn't rely very heavily on
> that much in the toolkit ...
Is gtkEmbed the only part of Mozilla that depends on GTK?
It was my impression that this was not the case. If it is possible to
embed Mozilla directly in an Xt widget, then that would certainly be
preferable in my case.
> Actually it wouldn't be too hard to write an Xt wrapper that acts like a Gdk
> container. Gdk is fairly closely based on X structures anyhow :)
Before I attempted to do so, I did extensive web and newsgroup searches
and noticed two things. First, there were no source code available.
Second, whenever this issues was being raised, the unanimous reply was
that it was hard (yours reply being the exception). The latter was also
my experience, although it might be attributed to my lack of knowledge
about GTK.