From: Olivier Andrieu MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16001.43322.17670.133062 at akasha.ijm.jussieu.fr> Date: Wed, 26 Mar 2003 14:20:58 +0100 To: stalkern2 at tin.it Cc: lablgtk at kaba.or.jp Subject: Re: trouble in creating a drawing area on (still) not shown window; GPointer.Null exception In-Reply-To: <200303251756.31234.stalkern2 at tin.it> References: <200303251756.31234.stalkern2 at tin.it> Stalkern 2 [Tuesday 25 March 2003] : > > Hello to everybody > > I have a basic question: what's the clean approach for setting callbacks in > window1 to a drawing area in window2 if window2 IS NOT SHOWN YET? I think you want to 'realize' the window. That is, GTK asks the X server to create the window, but does not map (show) it yet. area#misc#realize () This should avoid the GPointer.Null exception. -- Olivier