Re: Execute an external program and progress bar
- From: Biswapesh Chattopadhyay <biswapesh_chatterjee tcscal co in>
- To: gnome-devel-list gnome org
- Subject: Re: Execute an external program and progress bar
- Date: 28 Apr 2003 11:34:40 +0530
Use g_execute_* to run the program, then create an IOChannel on the
output stream and add it to the main loop.
Alternatively, use idle timeout to select() or read() the output and
update the status bar accordingly.
You can check out anjuta's code to see how we do it (src/launcher.c)
>
> Is there a standard way to:
>
> 1. Execute a program from a GNOME program and read its output,
> 2. Monitor the output and show a progress bar based on it?
>
> Part 1 I have already done.
> Is it necessary to use threads for part 2?
> The program doesn't have to accept input during the progress, it should
> only update its window.
>
> --
> Gérard Milmeister
> Tannenrauchstrasse 35
> 8038 Zürich
> gemi bluewin ch
> _______________________________________________
> gnome-devel-list mailing list
> gnome-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gnome-devel-list
> (See attached file: InterScan_SafeStamp.txt)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]