gio: Add g_drive_is_removable() support

Nautilus wants to show entries in the sidebar only for removable devices.
It uses currently sort of conditions to determine which devices should be
shown. Those condition fails in some cases unfortunatelly. Lets provide
g_drive_is_removable() which uses udisks Removable property to determine
which devices should be shown. It should return true for all drives with
removable media, or flash media, or drives on usb and firewire buses.

https://bugzilla.gnome.org/show_bug.cgi?id=765900
This commit is contained in:
Ondrej Holy
2016-04-29 17:14:57 +02:00
parent 098f19bced
commit 7b3f6da307
3 changed files with 30 additions and 0 deletions

View File

@@ -1225,6 +1225,7 @@ g_drive_poll_for_media
g_drive_poll_for_media_finish
g_drive_has_media
g_drive_is_media_check_automatic
g_drive_is_removable
g_drive_is_media_removable
g_drive_eject
g_drive_eject_finish