[Glade-users] Update progressbar from forked child
- From: tvb at gnome.org (Tristan Van Berkom)
- Subject: [Glade-users] Update progressbar from forked child
- Date: Mon, 20 Nov 2006 11:45:37 -0500
Steven wrote:
Hi Tristan,
Thx for your answer. I'll subscribe to the gtk lists.
I tried your solution, and it works half...
If I use vfork, my main window hangs until the child is done, and then
the progressbar is updated nicely
(but the function keeps running, despite the return FALSE;)
If I use fork, the main window doesn't hang but the idle_function isn't
executed (even not when the child exits)
Do you mind glancing an eye on my code ? I'm not used to program GUIs
and work with events etc, so I guess it's a stupid mistake somewhere.
And I'll be glad if you could point it out :-)
Yes I did glance at the code, and I gave you a solution, I told you
to use a thread - dont fork your program - use a thread.
Cheers,
-Tristan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]