aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEttore Perazzoli <ettore@src.gnome.org>2001-09-07 04:56:54 +0800
committerEttore Perazzoli <ettore@src.gnome.org>2001-09-07 04:56:54 +0800
commitc79ee4fb9a1945e411afe31bba7ddcc25cf8be3a (patch)
tree3b309cd5e09261973835e0e89201a086733a54e4
parent2b0ac4817c1b417a2724219ef79f09f042be9f09 (diff)
downloadgsoc2013-evolution-c79ee4fb9a1945e411afe31bba7ddcc25cf8be3a.tar
gsoc2013-evolution-c79ee4fb9a1945e411afe31bba7ddcc25cf8be3a.tar.gz
gsoc2013-evolution-c79ee4fb9a1945e411afe31bba7ddcc25cf8be3a.tar.bz2
gsoc2013-evolution-c79ee4fb9a1945e411afe31bba7ddcc25cf8be3a.tar.lz
gsoc2013-evolution-c79ee4fb9a1945e411afe31bba7ddcc25cf8be3a.tar.xz
gsoc2013-evolution-c79ee4fb9a1945e411afe31bba7ddcc25cf8be3a.tar.zst
gsoc2013-evolution-c79ee4fb9a1945e411afe31bba7ddcc25cf8be3a.zip
Allow a value of -1.0 for @progress [which means "unknown progress"].
* evolution-activity-client.c (evolution_activity_client_update): Allow a value of -1.0 for @progress [which means "unknown progress"]. svn path=/trunk/; revision=12659
-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;