Bjorn Reese wrote:

> 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?

No.  gtkEmbed is a little sample program that's written in gtk that 
embeds mozilla as a window.  There's a lot of underlying code that is 
used in mozilla that is gtk based.

> 
> 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.

I wouldn't describe it as impossible, for sure. :)  Seriously, it's not 
too bad.  I don't think that anyone has actually gotten mozilla running 
in an Xt context using the Gtk widget set yet.

--Chris

-- 
------------
Christopher Blizzard
http://people.redhat.com/blizzard/
mozilla.org - We're on a mission from God.  Still.
------------


Reply via email to