[10618] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: resize events for drawing area ???

daemon@ATHENA.MIT.EDU (Havoc Pennington)
Wed Dec 2 19:35:06 1998

Date: Wed, 2 Dec 1998 18:31:43 -0600 (CST)
From: Havoc Pennington <rhpennin@midway.uchicago.edu>
To: gtk-list@redhat.com
cc: serge@physics.unc.edu
In-Reply-To: <3665C763.841267DD@ii.uib.no>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com


On Wed, 2 Dec 1998, Tom Bech wrote:
> 
> try "size_allocate"
> 

When doing this, always check that the new size is actually different from
the old size, because you'll get some events when the size didn't really
change, or only the position changed (Just a tip I've learned from doing
the same thing.) 

Also, for drawing area you can use configure_event instead - this is only
sent when/after the widget is realized, unlike size_allocate.

Havoc


-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post