[gvfs/wip/udisks2] Use Drive:SortKey for sorting drive objects
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs/wip/udisks2] Use Drive:SortKey for sorting drive objects
- Date: Tue, 10 Jan 2012 21:22:43 +0000 (UTC)
commit d8cd1711a100fdd6553a8b243c3392a6e427f38c
Author: David Zeuthen <davidz redhat com>
Date: Tue Jan 10 16:21:52 2012 -0500
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>
monitor/udisks2/gvfsudisks2drive.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/monitor/udisks2/gvfsudisks2drive.c b/monitor/udisks2/gvfsudisks2drive.c
index 3b53fc1..7b93b6f 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]