Re: Progress Bar Question.
- From: John Cupitt <jcupitt gmail com>
- To: Tony Freeman <tony freeman insightbb com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Progress Bar Question.
- Date: Wed, 1 Sep 2004 11:00:02 +0000
Hi,
On Wed, 01 Sep 2004 00:24:43 -0400, Tony Freeman
<tony freeman insightbb com> wrote:
I'd like to fork a process and start the progress bar off on it's merry
little jog. Then when the process is finished, I'd need to stop the
progress bar.
Nothing in gtk+ will happen on its own ... you always have to have a
thread running the GUI.
I think the simplest solution would be to fork the process in the
background and start a timeout which fires a few times a second. In
the timeout, you should update the progress bar and poll the child to
see if it's finished.
There are more elaborate schemes with running the child as a separate
thread and using various IPC things to check progress and pick up
return values, but they are quite a bit more complicated.
John
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]