Ari Heitner wrote:

> On Wed, 13 Dec 2000, Bjorn Reese wrote:
> 
> [embedding Gtk widgets in Xt]
> 
>> This ought to be a task for a GTK hacker, who wants GTK to be
>> used more widely. If somebody is willing, then I will be glad
>> to help out on the Xt side.
>> 
> 
> 
> this is a little bit backwards/counter Gtk design. The whole reason Gtk
> abstracts itself (via Gdk) from X is to provide greater portability. Since
> there is already a Gdk implementation on top of X, the "normal" thought process
> in writing an X application with Gtk would be "I'm writing this in Gtk a)
> because it's an easy widget toolkit to write for b) because I'm *gaining*
> portability to other platforms, due to built-in abstraction layers". Embedding
> a Gtk widget in Xt for the pure purpose of accessing a widget that itself is
> embedded in Gtk strikes me as ... roundabout ...
> 
> 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?
> 
> The correct way to do it, btw, is to bonobo-ify GtkMozEmbed, after which you
> can use it from anything you like ... (editorial note: /me thinks CORBA is
> highly overrated and results in broken and dog-slow systems like <ugh> NT).
> 
> 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 ... 
> 
> 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 :) 
> 
> there. i think i've covered every possible opinion.
> 
> 
> 
> Ari

There's a lot of X-specific code in the mozilla gtk widget layer.  We do 
this for performance reasons.  bonobo isn't enough to solve this 
particular problem.

--Chris

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

Reply via email to