Re: Execute an external program and progress bar
- From: Sean Middleditch <elanthis awesomeplay com>
- To: gnome-devel-list gnome org
- Subject: Re: Execute an external program and progress bar
- Date: Mon, 28 Apr 2003 09:27:06 -0400
On Mon, 2003-04-28 at 05:24, Gérard Milmeister wrote:
> On Mon, 2003-04-28 at 08:04, Biswapesh Chattopadhyay wrote:
> > 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)
>
> Thanks, I will look into this. However I think I won't use it this time.
> My little process is not worth the hassle. I probably just show an
> hourglass, this is pretty too now with XCURSOR.
If it's going to take more than a second or three, it's better to use
the progress dialog. Hourglasses only tell you that the app _should_ be
busy, not that it actually is - i.e., you can't tell if an app is locked
up, and impatient people might just assume it is.
I think the HIG covers the do's and dont's of using progress
bars/dialogs properly, I'd heavily suggest reading it when doing any
GNOME devel work. ^,^
>
> Regards
--
The pain of war cannot exceed the woe of aftermath.
-- Led Zeppelin, "Battle of Evermore"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]