[gnome-disk-utility/udisks2-port] Also show the "fav star" for configured devices without any media
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility/udisks2-port] Also show the "fav star" for configured devices without any media
- Date: Fri, 12 Aug 2011 14:48:11 +0000 (UTC)
commit 3be75159afa719672447ac5e34af1971a6363761
Author: David Zeuthen <davidz redhat com>
Date: Fri Aug 12 10:42:10 2011 -0400
Also show the "fav star" for configured devices without any media
Signed-off-by: David Zeuthen <davidz redhat com>
src/palimpsest/gduvolumegrid.c | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/src/palimpsest/gduvolumegrid.c b/src/palimpsest/gduvolumegrid.c
index 89dfde7..137e883 100644
--- a/src/palimpsest/gduvolumegrid.c
+++ b/src/palimpsest/gduvolumegrid.c
@@ -1898,7 +1898,17 @@ grid_element_set_details (GduVolumeGrid *grid,
break;
case GDU_VOLUME_GRID_ELEMENT_TYPE_NO_MEDIA:
- element->markup = g_strdup (_("No Media"));
+ {
+ element->markup = g_strdup (_("No Media"));
+
+ if (grid->block_device != NULL)
+ {
+ UDisksBlockDevice *block;
+ block = udisks_object_peek_block_device (grid->block_device);
+ if (block != NULL && g_variant_n_children (udisks_block_device_get_configuration (block)) > 0)
+ element->show_configured = TRUE;
+ }
+ }
break;
case GDU_VOLUME_GRID_ELEMENT_TYPE_FREE_SPACE:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]