aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell/ChangeLog6
-rw-r--r--shell/evolution-activity-client.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index b4e60fffb3..c606043696 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,9 @@
+2001-09-06 Ettore Perazzoli <ettore@ximian.com>
+
+ * evolution-activity-client.c (evolution_activity_client_update):
+ Allow a value of -1.0 for @progress [which means "unknown
+ progress"].
+
2001-09-05 Ettore Perazzoli <ettore@ximian.com>
[Fix #958, ShellComponents should not be created by factories, for
diff --git a/shell/evolution-activity-client.c b/shell/evolution-activity-client.c
index c6ab154ed4..8e2a06c87e 100644
--- a/shell/evolution-activity-client.c
+++ b/shell/evolution-activity-client.c
@@ -421,7 +421,7 @@ evolution_activity_client_update (EvolutionActivityClient *activity_client,
g_return_val_if_fail (activity_client != NULL, FALSE);
g_return_val_if_fail (EVOLUTION_IS_ACTIVITY_CLIENT (activity_client), FALSE);
g_return_val_if_fail (information != NULL, FALSE);
- g_return_val_if_fail (progress >= 0.0 && progress <= 1.0, FALSE);
+ g_return_val_if_fail (progress == -1.0 || (progress >= 0.0 && progress <= 1.0), FALSE);
priv = activity_client->priv;