summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2016-08-11 13:53:56 -0500
committerFrediano Ziglio <fziglio@redhat.com>2016-08-12 09:57:35 +0100
commit266414762027312fedc0a0c1d7c085c7e219b39a (patch)
tree5aa9d1dc6fdc7764b179565bc34ff870746c9fc7
parentef9538efd36aa025bc4d7d3fe9f6a111f6a9a09c (diff)
Fix docs for SpiceFileTransferTask::progress
This property actually represents a fractional value from 0 to 1.0, not a percentage between 0 and 100. Acked-by: Frediano Ziglio <fziglio@redhat.com>
-rw-r--r--src/spice-file-transfer-task.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/spice-file-transfer-task.c b/src/spice-file-transfer-task.c
index e7f50da..3be130c 100644
--- a/src/spice-file-transfer-task.c
+++ b/src/spice-file-transfer-task.c
@@ -507,7 +507,7 @@ gboolean spice_file_transfer_task_is_completed(SpiceFileTransferTask *self)
* Convenience function for retrieving the current progress of this file
* transfer task.
*
- * Returns: A percentage value between 0 and 100
+ * Returns: A fractional value between 0 and 1.0
*
* Since: 0.31
**/
@@ -717,7 +717,7 @@ spice_file_transfer_task_class_init(SpiceFileTransferTaskClass *klass)
* SpiceFileTransferTask:progress:
*
* The current state of the file transfer. This value indicates a
- * percentage, and ranges from 0 to 100. Listen for change notifications on
+ * fraction, and ranges from 0 to 1.0. Listen for change notifications on
* this property to be updated whenever the file transfer progress changes.
*
* Since: 0.31
@@ -726,7 +726,7 @@ spice_file_transfer_task_class_init(SpiceFileTransferTaskClass *klass)
g_param_spec_double("progress",
"Progress",
"The percentage of the file transferred",
- 0.0, 100.0, 0.0,
+ 0.0, 1.0, 0.0,
G_PARAM_READABLE |
G_PARAM_STATIC_STRINGS));