[gtk+/wip/gbsneto/placessidebar-locations] placessidebar: only show removable devices
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/gbsneto/placessidebar-locations] placessidebar: only show removable devices
- Date: Tue, 26 May 2015 19:09:38 +0000 (UTC)
commit 07988f6ff4c523f828bad317a678c3efcf86ce96
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue May 26 16:05:41 2015 -0300
placessidebar: only show removable devices
gtk/gtkplacessidebar.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index de4d1df..fc48cef 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -1070,6 +1070,9 @@ update_places (GtkPlacesSidebar *sidebar)
}
g_free (identifier);
+ if (!g_drive_is_media_removable (drive))
+ continue;
+
mount = g_volume_get_mount (volume);
if (mount != NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]