Delivered-To: garrigue at math.nagoya-u.ac.jp Authentication-Results: mailhost.math.nagoya-u.ac.jp sender=lablgtk-bounces at yquem.inria.fr; domainkey=neutral (no query protocol specified; no policy for yquem.inria.fr) Delivered-To: lablgtk at yquem.inria.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=HWFhNELmwi6RHkESRU0MUDMDewtpy2ouiU+MNkrjluw=; b=HFqKTvE3Iem/hey+s7mMvcPZaxnNnKqgDjO3rfeHhWuYQctB+4143YDtYjxzKffGVg 5SIt4ucRTHHu3cF6pQpuOlFsVrxjbdP4+k+exgPV7nvr4beq8hsaY1QQ/urg6KWLc81i MSF5ixT+9R0tA9jaYN7gjcXzzTNv2F3Y77ALI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=IQZxXhCGkkwI/+g7Xk/hOa7h1N/TUz7xXSL8GSDVSfWhNm+ana2hbd0TOt7prrPPhr m3U1OUhAkxEETJMY3aiWVkmlxiphEDioJ6zhXwAbL01RwEalf8AcPiDS1iiax5r2oTnr uJaVYhZTffd2Y77gzOOFH51RDrw9UIDOGayfU= MIME-Version: 1.0 In-Reply-To: <4B464D80.3080901 at starynkevitch.net> References: <4B464B1B.4070701 at starynkevitch.net> <4B464D80.3080901@starynkevitch.net> Date: Thu, 7 Jan 2010 22:24:46 +0100 Message-ID: <666572261001071324y7e91365er3e3cf48ed56e09a4 at mail.gmail.com> Subject: Re: [Lablgtk] drawing area & events From: Adrien To: lablgtk at yquem.inria.fr Content-Type: text/plain; charset=ISO-8859-1 Hi, I'm not completely fluent with lablgtk's api but I think you should use the following: drawar#event#connect#key_press [1] Don't know if it's the best thing but I've been using it for some time without problem[2]. [1] http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/lablgtk/html/GObj.event_signals.html [2] http://git.ocamlcore.org/cgi-bin/gitweb.cgi?p=caravel/caravel.git;a=blob;f=src/webkit_worker/window/window.ml;h=c56404e547cf3cb2675ec93e297204071f31952e;hb=exp --- Adrien Nader _______________________________________________ Lablgtk mailing list Lablgtk@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk