Date: Thu, 3 Jul 2003 17:41:13 +0100 To: lablgtk at kaba.or.jp Subject: Re: Infuriating problem with drawing areas Message-ID: <20030703164112.GC15588 at redhat.com> References: <20030703161253.GB15588 at redhat.com> <20030703163033.GA1641 at clipper.ens.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20030703163033.GA1641 at clipper.ens.fr> From: Richard Jones On Thu, Jul 03, 2003 at 06:30:33PM +0200, Nicolas George wrote: > Le quintidi 15 messidor, an CCXI, Richard Jones a ?crit?: > > let da =3D GMisc.drawing_area () in > > da#misc#realize (); >=20 > You can not realize your widget if it does not have a parent. You have > to put it in a container before. I did try this - first removing the da#misc#realize () above, then adding it to 'view_drawing': let view_drawing () =3D let da =3D create_drawing_area () in List.iter area#remove area#children; area#add da; da#misc#realize () This now dies in a different way. The program crashes with this error message: Fatal error: exception Gpointer.Null Can you tell me how to get this program to work? Rich. --=20 Richard Jones. http://www.annexia.org/ http://freshmeat.net/users/rwmj Merjis Ltd. http://www.merjis.com/ - all your business data are belong to y= ou. C2LIB is a library of basic Perl/STL-like types for C. Vectors, hashes, trees, string funcs, pool allocator: http://www.annexia.org/freeware/c2lib/