[84] 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 (Shawn T Amundson)
Sun May 11 11:54:01 1997

From: Shawn T Amundson <amundson@cs.umn.edu>
To: gtk-list@redhat.com
Date: Sun, 11 May 1997 10:53:43 -0500 (CDT)
In-Reply-To: <"gMPR82.0.RS7.8nLTp"@mail2.redhat.com> from "Peter Mattis" at May 10, 97 10:34:56 pm
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com


This seems to do *exactly* what I wanted.  I thought I had tried 
it, but apparently not.  2 lines of code later and I'm all smiles. 
;-)

-Shawn

Words Of Peter Mattis:
>
>
>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
>


--
Shawn T. Amundson		University of Minnesota
Systems Administration	 	Computer Science System Staff
amundson@cs.umn.edu	  	http://www.cs.umn.edu/~amundson/     	

You can't talk to a PSYCHO like a normal human being!!!!  -Poe

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


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