Date: Thu, 19 Aug 2004 18:30:36 +0900 (JST) Message-Id: <20040819.183036.99078321.garrigue at kurims.kyoto-u.ac.jp> To: msk at intellij.com Cc: lablgtk at kaba.or.jp Subject: Re: Event handling in widget binding From: Jacques GARRIGUE In-Reply-To: <412467B7.3050206 at intellij.com> References: <412467B7.3050206 at intellij.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Anton Moscal > I'm writing now LablGtk2 bindings for Scintilla editor widget > (http://www.scintilla.org) and have a small problem. I don't understand > how works lablgtk2 infrastructure for event: I found in srcs *.props > files, but can't understand its structure. Are some docs about this > matter exists? > > PS: Scintilla have only one event - "scintilla-notify", which fired for > all Scintilla "real" events and have a two parameters - pointer to > widget instance and complex C structure containing all information about > event. All what I need - pass this info to Caml callback. If there is only one event, then you will be much faster interfacing it by hand. For typical examples of that, you can either look at the generated files (gtkXxxProps.ml) or non-gtk stuff, like gnomeDruid.ml. propcc is too dirty to be documented :-( Maybe one day I'll try to clean it up. Jacques --------------------------------------------------------------------------- Jacques Garrigue Kyoto University garrigue at kurims.kyoto-u.ac.jp JG