Re: [gtk-list] Re: Window Resize Signals




On Fri, 12 Nov 1999, Emmanuel DELOGET wrote:
> > I want a callback called whenever the window is resized so that I can save
> > the new geometry. It looks like I need either the size_request or
> > size_allocate signal from GtkWidget. They both seem to work, so does it
> > matter which one I connect to?
> 
>     I can't remember what is the correct policy for this. In fact, I don't
>     remember when these signal are emitted (after or before size computation
> ?)
>     So I will consider here that the signal are emitted at the end of
>     the size_request/size_allocate widget handlers.
> 

For a toplevel window or drawing area, you want configure_event for this. 
(Read the width/height fields from the event struct.)

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]