Re: Detecting a resize
- From: Daniel Kasak <dan entropy homelinux org>
- To: Hans Oesterholt-Dijkema <hdnews gawab com>
- Cc: "gtk-list gnome org" <gtk-list gnome org>
- Subject: Re: Detecting a resize
- Date: Sat, 21 Oct 2006 00:06:02 +1000
Hans Oesterholt-Dijkema wrote:
>> Or you could get really tricky and figure out when the user has finished
>> resizing the window by using a timeout and some code that sets a flag
>> when a size_allocate signal is set ... you'd do your scaling operation
>> if your timeout code runs and a *further* size_allocate signal *hasn't*
>> been fired.
>>
>
> Thanks for your advice,
>
That's OK :)
> That doesn't look tricky at all. I can implement
> such handling in half an hour. And I'll just create
> a new signal 'resized' that will be fired after the timeout.
>
Cool.
> I got an advise to use the 'configure event'
> from someone else. Would this be a good idea?
>
> --Hans
>
Never heard of it to be honest. I only use a relatively small subset of
what gtk+ can do ... and I'm using Gtk2-Perl.
Dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]