Re: the endless cycle of resizing



On Thu, Feb 20, 2003 at 10:22:47PM -0500, Paul Davis wrote:
> this is an old problem i've had for about 2 years with GTK. i just
> want to see if anyone has any new ideas for how to deal with it.
> 
> the problem arises when you put two widgets that both dynamically
> resize themselves (to match the size of their contents) into a
> box/table and tell them to fill it. what happens is a ping-ponging of
> configure events and size requests - each time one of them changes it
> size, it causes a configure event to go to the other, which causes a
> new size request, and round and round it goes.
> 
> i need to find a way to stop this from happening. right now, i have
> resorted (for 2 years or so) to using a Fixed as one of the widgets
> precisely because it does not resize to show 100% of its
> children. this fails as soon as something happens that causes the
> children to not fit inside the allocated size of the Fixed - the
> edge(s) of the children become invisible.
> 
> does anyone have any idea how to stop this?
> 

I don't think I understand the problem fully - is the issue that their
contents keep changing?

I don't see why there would be ping-ponging unless the size request of
each one is changing very frequently (each time the size is requested,
basically).

Are you doing queue_resize() out of size request or size allocate?
that would clearly cause an infinite loop issue.

Havoc




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