From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29375 invoked by alias); 27 Dec 2002 17:14:33 -0000 Mailing-List: contact guile-gtk-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: guile-gtk-owner@sources.redhat.com Received: (qmail 29368 invoked from network); 27 Dec 2002 17:14:32 -0000 Received: from unknown (HELO maho3msx2.corp.emc.com) (128.221.11.32) by 209.249.29.67 with SMTP; 27 Dec 2002 17:14:32 -0000 Received: from pablo (10.68.1.38 [10.68.1.38]) by maho3msx2.corp.emc.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id ZGWVVN2X; Fri, 27 Dec 2002 12:14:20 -0500 Date: Fri, 27 Dec 2002 09:14:00 -0000 From: Stan Pinte To: guile-gtk@sources.redhat.com Subject: Re: pixmap problem Message-Id: <20021227183702.7258f25d.alto_stan@wanadoo.be> In-Reply-To: <20021227172903.5a4b26f4.alto_stan@wanadoo.be> References: <20021227172903.5a4b26f4.alto_stan@wanadoo.be> Reply-To: alto_stan@wanadoo.be Organization: Alto Software Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2002-q4/txt/msg00025.txt.bz2 On Fri, 27 Dec 2002 17:29:03 +0100 Stan Pinte wrote: > hello, > > the 'height and 'width of the pixmap of the following example is null... > > > (let* ((window (gtk-window-new 'toplevel)) > (button (gtk-button-new)) > (pixmap (gtk-pixmap-new "./my-pic.xpm" button))) > (gtk-container-add window pixmap) > (display (gtk-widget-get pixmap 'height)) > (display (gtk-widget-get pixmap 'width)) > (gtk-widget-show window) > (gtk-widget-show pixmap) > (gtk-repl)) > sorry, I solved my problem by calling (gtk-widget-allocation-width pixmap) after having done a gtk-widget-show-all on the window. I guess that is only at paiting time that Gtk initialize all the height and width variables. Sorry for the mess, Stan > > any idea why? > > thanks a lot, > > Stan > > -- > > Stanislas Pinte > > Computer Consultant > > Alto Software > 20 Pl St Jacques > B-4000 Liège > > web: http://www.altosw.be > email: alto_stan@wanadoo.be > > -- Stanislas Pinte Computer Consultant Alto Software 20 Pl St Jacques B-4000 Liège web: http://www.altosw.be email: alto_stan@wanadoo.be