From f270adeb1bf704baa963e42feaf737e9f22ca115 Mon Sep 17 00:00:00 2001 From: Ross Lagerwall Date: Sun, 27 Sep 2015 15:59:49 +0100 Subject: [PATCH] gtkplacessidebar: Show drives with removable media Some drives have removable media that is not ejectable (e.g. a laptop's SD card reader). Show volumes on these drives in the sidebar. https://bugzilla.gnome.org/show_bug.cgi?id=755654 --- gtk/gtkplacessidebar.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index 2ee7e9e..d8a2190 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -840,7 +840,10 @@ is_removable_volume (GVolume *volume) is_removable |= !id; if (drive) - is_removable |= g_drive_can_eject (drive); + { + is_removable |= g_drive_can_eject (drive); + is_removable |= g_drive_is_media_removable (drive); + } if (mount) is_removable |= (g_mount_can_eject (mount) && !g_mount_can_unmount (mount)); -- 2.5.1