[glib] gio-tool: Add g_drive_is_removable() support
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gio-tool: Add g_drive_is_removable() support
- Date: Mon, 10 Apr 2017 08:18:39 +0000 (UTC)
commit 292f10d053c92d8908ef2d862ecb7672f0e0765a
Author: Ondrej Holy <oholy redhat com>
Date: Mon Dec 19 10:27:04 2016 +0100
gio-tool: Add g_drive_is_removable() support
The g_drive_is_removable() support was added recently in gio/gvfs
(see Bug 765900 and Bug 765457). It was also added in gvfs-mount,
but we forgot to add it also in gio-tool-mount.
https://bugzilla.gnome.org/show_bug.cgi?id=776169
gio/gio-tool-mount.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gio/gio-tool-mount.c b/gio/gio-tool-mount.c
index eb9c964..50ee5cd 100644
--- a/gio/gio-tool-mount.c
+++ b/gio/gio-tool-mount.c
@@ -780,6 +780,7 @@ list_drives (GList *drives,
g_object_unref (icon);
}
+ g_print ("%*sis_removable=%d\n", indent + 2, "", g_drive_is_removable (drive));
g_print ("%*sis_media_removable=%d\n", indent + 2, "", g_drive_is_media_removable (drive));
g_print ("%*shas_media=%d\n", indent + 2, "", g_drive_has_media (drive));
g_print ("%*sis_media_check_automatic=%d\n", indent + 2, "", g_drive_is_media_check_automatic
(drive));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]