[gvfs/wip/udisks2] udisks2: catch up with latest udisks changes
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/wip/udisks2] udisks2: catch up with latest udisks changes
- Date: Mon, 24 Oct 2011 14:17:32 +0000 (UTC)
commit 5dda97bde88f6fc667f8522837591255f0e0301b
Author: David Zeuthen <davidz redhat com>
Date: Mon Oct 24 10:17:26 2011 -0400
udisks2: catch up with latest udisks changes
Signed-off-by: David Zeuthen <davidz redhat com>
monitor/udisks2/gvfsudisks2volume.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/monitor/udisks2/gvfsudisks2volume.c b/monitor/udisks2/gvfsudisks2volume.c
index 9da6703..37004e1 100644
--- a/monitor/udisks2/gvfsudisks2volume.c
+++ b/monitor/udisks2/gvfsudisks2volume.c
@@ -235,7 +235,8 @@ update_volume (GVfsUDisks2Volume *volume)
}
else if (g_strcmp0 (udisks_block_get_id_type (block), "crypto_LUKS") == 0)
{
- s = udisks_util_get_size_for_display (udisks_block_get_size (volume->block), FALSE, FALSE);
+ s = udisks_client_get_size_for_display (gvfs_udisks2_volume_monitor_get_udisks_client (volume->monitor),
+ udisks_block_get_size (volume->block), FALSE, FALSE);
/* Translators: This is used for encrypted volumes.
* The first %s is the formatted size (e.g. "42.0 MB").
*/
@@ -247,7 +248,8 @@ update_volume (GVfsUDisks2Volume *volume)
guint64 size = udisks_block_get_size (block);
if (size > 0)
{
- s = udisks_util_get_size_for_display (size, FALSE, FALSE);
+ s = udisks_client_get_size_for_display (gvfs_udisks2_volume_monitor_get_udisks_client (volume->monitor),
+ size, FALSE, FALSE);
/* Translators: This is used for volume with no filesystem label.
* The first %s is the formatted size (e.g. "42.0 MB").
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]