Message-ID: <44EEEAFB.8000204 at tin.it> Date: Fri, 25 Aug 2006 14:20:11 +0200 From: Stalkern 2 MIME-Version: 1.0 To: lablgtk at math.nagoya-u.ac.jp Subject: Re: how to put text in a drawing_area ? References: <44EE235F.2050809 at tin.it> <44EE9E1A.9050409 at tin.it> <44EED402.6010006 at tin.it> <20060825.203217.06629593.garrigue at math.nagoya-u.ac.jp> In-Reply-To: <20060825.203217.06629593.garrigue at math.nagoya-u.ac.jp> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1 Content-Length: 1622 Jacques Garrigue wrote: > From: Stalkern 2 >> Still searching... >> >> So far I need to go from a GDraw.pixmap (server-side offscreen buffer >> IIRC) to a Gdk.Image (client-side offscreen buffer). >> >> What kind of object would allow me this move, apart from a visible window? > > I'm not sure I understand your problem. You can extract a Gdk.pixmap > from a GDraw.pixmap (using the pixmap method). Then you can get an > image with the Gdk.Imgage.get function. Do you need anything else? > > Jacques > Yes! :-( My problem is not with types, but with all the rest :-)) I get this error (with lablgtk2 version 2.6.0): --------------------------------------------------------- (ocaml:15916): Gdk-WARNING **: No colormap in gc_get_background The program 'ocaml' received an X Window System error. This probably reflects a bug in the program. The error was 'BadMatch (invalid parameter attributes)'. (Details: serial 186 error_code 8 request_code 73 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) --------------------------------------------------------- I don't get whose this GC and colormap are. I've played with Gdk.Rgb.get_cmap () after a Gdk.Rgb.init (), and with Gdk.Color.get_system_colormap () but I'm dramatically unable to get a clear idea about the situation... Ernesto