[10359] in The GTK GIMP ToolKit mailing list archive

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

[gtk-list] Forcing a widget redraw

daemon@ATHENA.MIT.EDU (David Given)
Tue Nov 24 05:41:03 1998

To: gtk-list@redhat.com
From: "David Given" <david_given@tao.co.uk>
Date: Tue, 24 Nov 1998 10:40:28 +0000
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

Is it possible to make a widget redraw *now*, i.e. don't put an event on the 
queue?

I have a program that's doing major processing (a CD sound file editor, if 
you're interested). When it's processing tens of megabytes of data it can take 
a while. I'd like to have a progress bar.

Unfortunately, if I change the value of the progress bar in the usual way, the 
signal is deferred until my function returns. By which time the whole 
operation has finished.

Yes, I *know* I should be doing the processing in small chunks in the 
background but that's hard.

I suppose what I want to do is to call the progress bar's paint function 
manually. But it's private and hidden from user programs. What can I do?

-- 
+- David Given ----------------+ 
|  Work: dg@tao.co.uk          | FNORD                            
|  Play: dgiven@iname.com      | 
+- http://wiredsoc.ml.org/~dg -+ 


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


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