diff options
author | David Zeuthen <davidz@redhat.com> | 2011-10-13 16:55:18 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2011-10-18 14:33:06 -0400 |
commit | 2b5e26a0ca1f9a38fe981f431ee6fc29180d8fff (patch) | |
tree | 7caead6d404eb1dce8ea6be3e8788c78cc89c89a /programs | |
parent | c3a401f8314588e0d16d7eecf2ad8a9c815645eb (diff) | |
download | gvfs-2b5e26a0ca1f9a38fe981f431ee6fc29180d8fff.tar.gz |
Support get_sort_key() in out-of-process volume monitors and gvfs-mount(1)
This is detailed in this bug
https://bugzilla.gnome.org/show_bug.cgi?id=661711
Also extend the private D-Bus protocol used between the client- and
service-side for out-of-process volume monitors. In particular,
introduce a new a{sv} member that we can use in the future to for
expansion without breaking ABI.
Signed-off-by: David Zeuthen <davidz@redhat.com>
Diffstat (limited to 'programs')
-rw-r--r-- | programs/gvfs-mount.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/programs/gvfs-mount.c b/programs/gvfs-mount.c index 58adfa66..d6ccc9c3 100644 --- a/programs/gvfs-mount.c +++ b/programs/gvfs-mount.c @@ -364,6 +364,7 @@ list_mounts (GList *mounts, GIcon *icon; char **x_content_types; char *type_name; + const gchar *sort_key; for (c = 0, l = mounts; l != NULL; l = l->next, c++) { @@ -427,6 +428,9 @@ list_mounts (GList *mounts, g_print ("%*scan_unmount=%d\n", indent + 2, "", g_mount_can_unmount (mount)); g_print ("%*scan_eject=%d\n", indent + 2, "", g_mount_can_eject (mount)); g_print ("%*sis_shadowed=%d\n", indent + 2, "", g_mount_is_shadowed (mount)); + sort_key = g_mount_get_sort_key (mount); + if (sort_key != NULL) + g_print ("%*ssort_key=%s\n", indent + 2, "", sort_key); g_free (uuid); } @@ -452,6 +456,7 @@ list_volumes (GList *volumes, char **ids; GIcon *icon; char *type_name; + const gchar *sort_key; for (c = 0, l = volumes; l != NULL; l = l->next, c++) { @@ -516,6 +521,9 @@ list_volumes (GList *volumes, g_print ("%*scan_mount=%d\n", indent + 2, "", g_volume_can_mount (volume)); g_print ("%*scan_eject=%d\n", indent + 2, "", g_volume_can_eject (volume)); g_print ("%*sshould_automount=%d\n", indent + 2, "", g_volume_should_automount (volume)); + sort_key = g_volume_get_sort_key (volume); + if (sort_key != NULL) + g_print ("%*ssort_key=%s\n", indent + 2, "", sort_key); g_free (uuid); } @@ -541,6 +549,7 @@ list_drives (GList *drives, char **ids; GIcon *icon; char *type_name; + const gchar *sort_key; for (c = 0, l = drives; l != NULL; l = l->next, c++) { @@ -598,6 +607,10 @@ list_drives (GList *drives, enum_value != NULL ? enum_value->value_nick : "UNKNOWN"); g_type_class_unref (klass); } + + sort_key = g_drive_get_sort_key (drive); + if (sort_key != NULL) + g_print ("%*ssort_key=%s\n", indent + 2, "", sort_key); } volumes = g_drive_get_volumes (drive); list_volumes (volumes, indent + 2, FALSE); |