Forcing a widget redraw
- From: "David Given" <david_given tao co uk>
- To: gtk-list redhat com
- Subject: Forcing a widget redraw
- Date: Tue, 24 Nov 1998 10:40:28 +0000
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 -+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]