[79] in The GTK GIMP ToolKit mailing list archive

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

[gtk-list] Re: gtk_container_check_resize performance

daemon@ATHENA.MIT.EDU (Peter Mattis)
Sun May 11 01:42:18 1997

To: gtk-list@redhat.com
In-reply-to: Your message of "Sun, 11 May 1997 00:08:39 CDT."
             <199705110508.AAA06629@caesar.cs.umn.edu> 
Date: Sat, 10 May 1997 22:34:56 -0700
From: Peter Mattis <petm@scam.XCF.Berkeley.EDU>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com


Shawn T Amundson writes:
>I've tried to figure out a way to say "don't mess with this table
>widget" and then later say "do all that messing now".  In other words,
>prevent screen updates until a specified time.  In TK this is done
>automatically until it gets back to the event loop unless you tell 
>it to update.  Can a similar thing be achieved here?

You can call "gtk_container_disable_resize" to disable automatic
resizing of the container when a new widget is added. Calling
"gtk_container_enable_resize" turns automatic resizing back on and, if
a widget has been added or removed, will cause the container to
resize. 

I think I'll look into doing something like Tk does. Install an idle
proc when a container needs to be resized inorder to defer the actual
resizing until the events in the queue have been flushed. (Idle procs
only run when there are no events).

Peter

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


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