Add G_VOLUME_IDENTIFIER_KIND_CLASS identifier

If an application (such as Nautilus) wants to show a sidebar with
devices group into different groups such as "Devices" and "Network",
it's currently up to the application itself to do the classification
(for example by looking at the URI scheme for the activation root,
e.g. smb://).

This patch adds a new identifier G_VOLUME_IDENTIFIER_KIND_CLASS that
can be set by volume monitors and used by applications.

See https://bugzilla.gnome.org/show_bug.cgi?id=668295

Signed-off-by: David Zeuthen <davidz@redhat.com>
This commit is contained in:
David Zeuthen
2012-03-01 14:06:43 -05:00
parent 479416fada
commit 10fbfcf090
2 changed files with 19 additions and 0 deletions

View File

@@ -1098,6 +1098,7 @@ G_VOLUME_IDENTIFIER_KIND_LABEL
G_VOLUME_IDENTIFIER_KIND_NFS_MOUNT
G_VOLUME_IDENTIFIER_KIND_UNIX_DEVICE
G_VOLUME_IDENTIFIER_KIND_UUID
G_VOLUME_IDENTIFIER_KIND_CLASS
g_volume_enumerate_identifiers
g_volume_get_identifier
g_volume_get_sort_key