summaryrefslogtreecommitdiff
path: root/monitor/udisks2
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2012-01-10 16:21:52 -0500
committerDavid Zeuthen <davidz@redhat.com>2012-01-10 16:21:52 -0500
commitd8cd1711a100fdd6553a8b243c3392a6e427f38c (patch)
treec6213ea1af2c84406acc6de56d9dc7ee19b410d5 /monitor/udisks2
parentb4800b987b4a8423a52306c9aef35b3777464cc5 (diff)
downloadgvfs-d8cd1711a100fdd6553a8b243c3392a6e427f38c.tar.gz
Use Drive:SortKey for sorting drive objects
This ensures the drive sorting order defined by udisks is used. Signed-off-by: David Zeuthen <davidz@redhat.com>
Diffstat (limited to 'monitor/udisks2')
-rw-r--r--monitor/udisks2/gvfsudisks2drive.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/monitor/udisks2/gvfsudisks2drive.c b/monitor/udisks2/gvfsudisks2drive.c
index 3b53fc12..7b93b6f0 100644
--- a/monitor/udisks2/gvfsudisks2drive.c
+++ b/monitor/udisks2/gvfsudisks2drive.c
@@ -131,7 +131,6 @@ update_drive (GVfsUDisks2Drive *drive)
gboolean old_has_media;
gboolean old_can_eject;
UDisksBlock *block;
- gint64 time_detected;
/* ---------------------------------------------------------------------------------------------------- */
/* save old values */
@@ -170,10 +169,7 @@ update_drive (GVfsUDisks2Drive *drive)
g_object_unref (block);
}
- time_detected = udisks_drive_get_time_media_detected (drive->udisks_drive);
- if (time_detected == 0)
- udisks_drive_get_time_detected (drive->udisks_drive);
- drive->sort_key = g_strdup_printf ("gvfs.time_detected_usec.%" G_GINT64_FORMAT, time_detected);
+ drive->sort_key = g_strdup (udisks_drive_get_sort_key (drive->udisks_drive));
drive->is_media_removable = udisks_drive_get_media_removable (drive->udisks_drive);
if (drive->is_media_removable)