[gnome-disk-utility] Also handle MDRaid devices in multi-selection
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] Also handle MDRaid devices in multi-selection
- Date: Tue, 9 Oct 2012 21:27:08 +0000 (UTC)
commit 5b3cca34d2b54370c2faca7a489f021a6cd7e5ba
Author: David Zeuthen <zeuthen gmail com>
Date: Tue Oct 9 17:26:52 2012 -0400
Also handle MDRaid devices in multi-selection
Signed-off-by: David Zeuthen <zeuthen gmail com>
src/disks/gduwindow.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/disks/gduwindow.c b/src/disks/gduwindow.c
index ca383d1..f7535f2 100644
--- a/src/disks/gduwindow.c
+++ b/src/disks/gduwindow.c
@@ -905,9 +905,11 @@ device_tree_toolbar_update_label (GduWindow *window)
UDisksObject *object = UDISKS_OBJECT (l->data);
UDisksDrive *drive = NULL;
UDisksBlock *block = NULL;
+ UDisksMDRaid *mdraid = NULL;
drive = udisks_object_peek_drive (object);
block = udisks_object_peek_block (object);
+ mdraid = udisks_object_peek_mdraid (object);
if (drive != NULL)
{
@@ -919,6 +921,11 @@ device_tree_toolbar_update_label (GduWindow *window)
total_size += udisks_block_get_size (block);
num_disks++;
}
+ else if (mdraid != NULL)
+ {
+ total_size += udisks_mdraid_get_size (mdraid);
+ num_disks++;
+ }
else
{
g_warning ("unhandled object of with path %s", g_dbus_object_get_object_path (G_DBUS_OBJECT (object)));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]