summaryrefslogtreecommitdiff
path: root/src/progress.c
diff options
context:
space:
mode:
authorGlynn Foster <glynn.foster@sun.com>2003-01-07 00:01:00 +0000
committerGlynn Foster <gman@src.gnome.org>2003-01-07 00:01:00 +0000
commita8c3006035a068069ed9199400472332db540bb5 (patch)
tree9c6a12c98e47205d810184f0c61bfb7f833c5b15 /src/progress.c
parentd88a32f1f5418e97b5840087a21652f68ac938c8 (diff)
Improve error handling... a lot.
2003-01-06 Glynn Foster <glynn.foster@sun.com> * src/calendar.c, src/main.c, src/progress.c, src/tree.c, src/zenity.h: Improve error handling... a lot.
Diffstat (limited to 'src/progress.c')
-rw-r--r--src/progress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/progress.c b/src/progress.c
index 2130591..a890059 100644
--- a/src/progress.c
+++ b/src/progress.c
@@ -74,7 +74,7 @@ int zenity_progress (ZenityData *data, ZenityProgressData *progress_data)
giochannel = g_io_channel_unix_new (0);
- if (progress_data->pulsate != TRUE) {
+ if (progress_data->pulsate != TRUE && progress_data->percentage > -1) {
gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (progress_bar), progress_data->percentage/100.0);
}
else {