[gnome-control-center] info: Fix disk space showing free space
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] info: Fix disk space showing free space
- Date: Fri, 10 Jun 2011 15:37:20 +0000 (UTC)
commit 1b183a5fa25c7848512590b1c60fbf3a6984602d
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jun 10 16:28:01 2011 +0100
info: Fix disk space showing free space
An error in porting to async code in
c22a98dcb74b0942f50fe70f996cf9a16243447b made the info panel
report the free space rather than the disk space.
https://bugzilla.gnome.org/show_bug.cgi?id=639376
panels/info/cc-info-panel.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/panels/info/cc-info-panel.c b/panels/info/cc-info-panel.c
index 5081964..2283896 100644
--- a/panels/info/cc-info-panel.c
+++ b/panels/info/cc-info-panel.c
@@ -619,7 +619,7 @@ query_done (GFile *file,
return;
}
- self->priv->total_bytes += g_file_info_get_attribute_uint64 (info, G_FILE_ATTRIBUTE_FILESYSTEM_FREE);
+ self->priv->total_bytes += g_file_info_get_attribute_uint64 (info, G_FILE_ATTRIBUTE_FILESYSTEM_SIZE);
g_object_unref (info);
/* And onto the next element */
@@ -653,7 +653,7 @@ get_primary_disc_info_start (CcInfoPanel *self)
self->priv->cancellable = g_cancellable_new ();
g_file_query_filesystem_info_async (file,
- G_FILE_ATTRIBUTE_FILESYSTEM_FREE,
+ G_FILE_ATTRIBUTE_FILESYSTEM_SIZE,
0,
self->priv->cancellable,
(GAsyncReadyCallback) query_done,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]