[Glade-users] how to update process_bar in real time between multi-processes?

Tristan Van Berkom tristan.van.berkom at gmail.com
Tue Apr 22 10:41:03 EDT 2008


By child process you mean a result of fork() correct ?

if its really a child process, then that process will have to write its progress
to a file descriptor (probably a named pipe) and you'll read it in an iochannel
and update the progress bars from there.

if they are threads then you can just use g_idle_add() to tell the main GUI
thread to update the progress bars.

Cheers,
            -Tristan


2008/4/22 ֣ΰ <neubuffalo at 163.com>:
>
>
> the problem is as below:
>
> I have a main window with an Gtk_tree_view embedded in,every row of the
> gtk_tree_view has a process_bar,and now I want to update the process_bar in
> real time based on the data from a child process.How can I achieve this
> goal?
>
>  ________________________________
>  Âò·¿²»±Ø¶«±¼Î÷×ߣ¬ÉÏ·¿ÀÏ´ó¿´¶þÊÖ·¿Êµ¾°ÕÕƬ
> _______________________________________________
>  Glade-users maillist  -  Glade-users at lists.ximian.com
>  http://lists.ximian.com/mailman/listinfo/glade-users
>
>


More information about the Glade-users mailing list