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:received:date:message-id :subject:from:to:content-type; bh=scAKaE0NgFrXwXJGLoXkoFJ7OZi8569OR6pom7JVb7U=; b=bIqpboMKOv2ag8tK3rqj6pEewB5FL7zQw9crFoFCpOAYM6BSg+WMqbMQEwuyIQxepj y6Jx4HhRfkvZiquFEXp1NWEuHG+ljG6SXWNwWoCOGfmeH8fpgnL6P7gtXhWIf6pZPeJj u7kGYKuZk4+rxCJZZeiARjfPqIfIEGTVn/0Sw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=mPrwxQH57592HGix/48ye1TTL93TVaeK32GCBFWgjsTsptjlCgj+owd8CGTLHU/tlh 8CvUMiU6DQf/77PWlbXH9w8+//uG+7FarJoAjJFAC2dkdRjlEW5ID5EkJQVdXh9y0T7M S9/CFsHIBwm5Lhcubt8m6imo1RLWF/gbTIuew= MIME-Version: 1.0 Date: Tue, 29 Jun 2010 21:41:19 +0200 Message-ID: From: Serge Le Huitouze To: lablgtk at yquem.inria.fr Content-Type: text/plain; charset=ISO-8859-1 Subject: [Lablgtk] Background image Hi there, Sorry for this very basic question, but I'm at a loss... Context: I have a legacy image representing an approximate map. I want to superimpose a grid on it, and put circles of different size/color in the individual squares based on some text data I'll read in a file. Then, I want to be able to change circles of an individual square simply by clicking on it (thus, cycling through the different circles available). Problem: I'm trying to adapt the "scribble.ml" example from http://plus.kaist.ac.kr/~shoh/ocaml/lablgtk2/lablgtk2-tutorial/a2692.html#AEN2697 I thought it'd be a good starting point, since this code draws little black squares inside a window. I figured adding my background image would do the trick... I managed to make my background image visible (by adding a call to "drawing#pixbuf" in the "expose" function), but then I don't see the little black squares! All other fiddlings I tried were unsuccessful at even making appear my background image! Any advice? Thanks in advance. --Serge _______________________________________________ Lablgtk mailing list Lablgtk@yquem.inria.fr http://yquem.inria.fr/cgi-bin/mailman/listinfo/lablgtk