Date: Mon, 12 Jan 2004 10:13:49 +0000 To: lablgtk at kaba.or.jp Subject: Re: Render into an existing XWindow ID? Message-ID: <20040112101349.GA20669 at redhat.com> References: <20040111155334.GA14026 at redhat.com> <20040112091805.GA1067 at gallu.homelinux.org> <16386.28767.842624.81425 at akasha.ijm.jussieu.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16386.28767.842624.81425 at akasha.ijm.jussieu.fr> From: Richard Jones OK, I looked at GtkSocket / GtkPlug and the XEmbed protocol, and it isn't quite what I had in mind. The situation is this: in a Mozilla plugin we can query Mozilla for the following information: * Display * X Window ID * size and other attributes of the window. Mozilla plugins are .so files running in the same process as Mozilla. It looks as though the XEmbed protocol can't be used here. In particular there's just no way to put a GtkSocket into the native X window without some embedding, resulting in a chicken-and-egg problem. What I really want to do, I suppose, is create a new GtkWindow, but tell it not to create a new underlying X Window, but to reuse my X Window ID for the window. If that makes any sense ... You can probably see where I'm going with this - embedding OCaml programs as Mozilla plugins. Rich. -- Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - improving website return on investment MAKE+ is a sane replacement for GNU autoconf/automake. One script compiles, RPMs, pkgs etc. Linux, BSD, Solaris. http://www.annexia.org/freeware/makeplus/