From: Olivier Andrieu MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Message-ID: <17514.14202.286998.988501 at karryall.dnsalias.org> Date: Tue, 16 May 2006 22:35:06 +0200 To: Matt Gushee Cc: lablgtk at math.nagoya-u.ac.jp Subject: Re: Discovering widget dimensions In-Reply-To: <446A2CAA.2010402 at gushee.net> References: <446A2CAA.2010402 at gushee.net> Content-Type: text/plain; charset=us-ascii Content-Length: 593 Matt Gushee [Tuesday 16 May 2006] : > > I need to find the current height of a widget in LablGTK2. I have > been looking for property names such as 'height', 'width', or > 'geometry', but they don't seem to exist. some_widget#misc#allocation will give you the allocation field of the widget. It's called 'allocation' because of the way containers work in GTK+: a widget asks its parent container for some space (GtkRequisition) and then the container replies with some space (GtkAllocation) cf http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#GtkWidget-struct -- Olivier