aboutsummaryrefslogtreecommitdiffstats
path: root/shell/evolution-activity-client.c
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 /shell/evolution-activity-client.c
parent2b0ac4817c1b417a2724219ef79f09f042be9f09 (diff)
downloadgsoc2013-evolution-c79ee4fb9a1945e411afe31bba7ddcc25cf8be3a.tar.gz
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
Diffstat (limited to 'shell/evolution-activity-client.c')
-rw-r--r--shell/evolution-activity-client.c2
1 files changed, 1 insertions, 1 deletions
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;