Sender: lebotlan at beaune.inria.fr Message-ID: <3DC01234.36227E29 at beaune.inria.fr> Date: Wed, 30 Oct 2002 18:09:08 +0100 From: Didier Le Botlan Organization: INRIA (Projet CRISTAL) MIME-Version: 1.0 To: lablgtk at kaba.or.jp Subject: Lablgtk and X Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello list, I wish to communicate with ghostscript to tell it to draw into a given pixmap. Some time ago I implemented it using only X bindings (and it worked), but now I am trying to use lablgtk. In order to talk to ghostscript, it seems necessary to: - Get an atom (Gdk.Atom.intern should work) - Set a property (signature is probably 'windowid' -> atom -> content -> unit) The content is a string. 'atom' corresponds to the name of the property. Function gdk_property_change is probably what I need, but I do not understand its signature, and I am not able to interface it to OCaml yet. - Finally, I have to catch XClientMessageEvent(s). Jacques kindly gave me a patch to lablgtk which provides this feature. Does anyone knows how to talk to ghostscript in a simpler way ? (I want to tell him to draw into a given pixmap.) Any advice to write the caml interface to gdk_property_change ? -- Didier Le Botlan http://cristal.inria.fr/~lebotlan