Date: Tue, 14 Nov 2006 08:24:47 +1100 From: Erik de Castro Lopo To: lablgtk at math.nagoya-u.ac.jp Subject: Re: lablgtk2/cairo : update surface? Message-Id: <20061114082447.c13a9468.mle+ocaml at mega-nerd.com> In-Reply-To: <17752.48908.824554.30467 at karryall.dnsalias.org> References: <20061113104720.469ac2fd.erikd at mega-nerd.com> <20061113133011.492bbf9b.mle+ocaml@mega-nerd.com> <17752.48908.824554.30467@karryall.dnsalias.org> Organization: Erik Conspiracy Secret Labs Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Content-Length: 978 Olivier Andrieu wrote: > You really should use Cairo_lablgtk. I've updated the cube.ml example, > so now the above link will show you how it works with > Cairo_lablgtk. Basically, you define a expose event callback on a > drawing area, then you create a Cairo context on its window: > ,---- > | let get_cairo w = > | Cairo_lablgtk.create w#misc#window > `---- With the version of cairo-ocaml which was on my machine (20051120-1ubuntu1), I gotthe following error: Unbound value Cairo_lablgtk.create Upgrading to the version in the next release of Ubuntu (20060517-1) everything works. Thanks Olivier for you work on cairo-ocaml and your help here now. Cheers, Erik -- +-----------------------------------------------------------+ Erik de Castro Lopo +-----------------------------------------------------------+ Question #70427: Sitting beside women on public transport because one is forced to http://islamqa.com/index.php?ln=eng&ds=qa&lv=browse&QR=70427&dgn=4