Date: Thu, 8 Sep 2005 14:10:00 -0300 From: romildo at uber.com.br To: lablgtk at math.nagoya-u.ac.jp Subject: Constructing a value of type Gdk.color Message-ID: <20050908171000.GA17806 at malaquias> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi. I am looking for an easy way of constructing a value of type Gdk.color, given its red, green and blue components. Looking in module interface gdk.mli, I see only one function that returns a Gdk.color: val Gdk.Color.alloc colormap:Gdk.colormap -> Gdk.Color.spec -> color I do not need to alloc the color in a colormap. It is enough to set the basic fields of the GdkColor structure from the native glib library in C. Any help? Romildo