[gtk+] gtkplacessidebar: Show drives with removable media
- From: Ross Lagerwall <rossl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] gtkplacessidebar: Show drives with removable media
- Date: Wed, 14 Oct 2015 16:41:46 +0000 (UTC)
commit f2b848a5319987a3b45282058cd091b3e3152652
Author: Ross Lagerwall <rosslagerwall gmail com>
Date: Sun Sep 27 15:59:49 2015 +0100
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 files changed, 4 insertions(+), 1 deletions(-)
---
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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]