[gnome-disk-utility] Catch up with latest DeviceKit-disks API where :drive-requires-eject is gone
- From: David Zeuthen <davidz src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-disk-utility] Catch up with latest DeviceKit-disks API where :drive-requires-eject is gone
- Date: Mon, 15 Jun 2009 11:33:59 -0400 (EDT)
commit b5e2ae8f842b89885c2c1b9fa66d81310aa71aba
Author: David Zeuthen <davidz redhat com>
Date: Mon Jun 15 11:31:07 2009 -0400
Catch up with latest DeviceKit-disks API where :drive-requires-eject is gone
src/gdu/gdu-device.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/gdu/gdu-device.c b/src/gdu/gdu-device.c
index f2b1c98..9d6cf32 100644
--- a/src/gdu/gdu-device.c
+++ b/src/gdu/gdu-device.c
@@ -117,7 +117,6 @@ typedef struct
char **drive_media_compatibility;
char *drive_media;
gboolean drive_is_media_ejectable;
- gboolean drive_requires_eject;
gboolean drive_can_detach;
gboolean optical_disc_is_blank;
@@ -314,8 +313,6 @@ collect_props (const char *key, const GValue *value, DeviceProperties *props)
props->drive_media = g_strdup (g_value_get_string (value));
else if (strcmp (key, "drive-is-media-ejectable") == 0)
props->drive_is_media_ejectable = g_value_get_boolean (value);
- else if (strcmp (key, "drive-requires-eject") == 0)
- props->drive_requires_eject = g_value_get_boolean (value);
else if (strcmp (key, "drive-can-detach") == 0)
props->drive_can_detach = g_value_get_boolean (value);
@@ -1099,7 +1096,8 @@ gdu_device_drive_get_is_media_ejectable (GduDevice *device)
gboolean
gdu_device_drive_get_requires_eject (GduDevice *device)
{
- return device->priv->props->drive_requires_eject;
+ /* TODO: remove once GVfs isn't using this anymore */
+ return FALSE;
}
gboolean
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]