[gnome-disk-utility] export :device-presentation-hide property in the API
- From: David Zeuthen <davidz src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-disk-utility] export :device-presentation-hide property in the API
- Date: Wed, 15 Apr 2009 11:14:25 -0400 (EDT)
commit a0315ce9f2847e945e28281994ea7478024f65ad
Author: David Zeuthen <davidz redhat com>
Date: Wed Apr 15 11:12:11 2009 -0400
export :device-presentation-hide property in the API
---
src/gdu/gdu-device.c | 9 +++++++++
src/gdu/gdu-device.h | 1 +
2 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/gdu/gdu-device.c b/src/gdu/gdu-device.c
index 7c3fc7e..5aa1a4a 100644
--- a/src/gdu/gdu-device.c
+++ b/src/gdu/gdu-device.c
@@ -70,6 +70,7 @@ typedef struct
gboolean device_is_linux_md;
char **device_mount_paths;
uid_t device_mounted_by_uid;
+ gboolean device_presentation_hide;
char *device_presentation_name;
char *device_presentation_icon_name;
guint64 device_size;
@@ -223,6 +224,8 @@ collect_props (const char *key, const GValue *value, DeviceProperties *props)
props->device_mount_paths = g_strdupv (g_value_get_boxed (value));
else if (strcmp (key, "device-mounted-by-uid") == 0)
props->device_mounted_by_uid = g_value_get_uint (value);
+ else if (strcmp (key, "device-presentation-hide") == 0)
+ props->device_presentation_hide = g_value_get_boolean (value);
else if (strcmp (key, "device-presentation-name") == 0)
props->device_presentation_name = g_strdup (g_value_get_string (value));
else if (strcmp (key, "device-presentation-icon-name") == 0)
@@ -862,6 +865,12 @@ gdu_device_get_mount_paths (GduDevice *device)
return device->priv->props->device_mount_paths;
}
+gboolean
+gdu_device_get_presentation_hide (GduDevice *device)
+{
+ return device->priv->props->device_presentation_hide;
+}
+
const char *
gdu_device_get_presentation_name (GduDevice *device)
{
diff --git a/src/gdu/gdu-device.h b/src/gdu/gdu-device.h
index 4cdb97b..c7287ea 100644
--- a/src/gdu/gdu-device.h
+++ b/src/gdu/gdu-device.h
@@ -91,6 +91,7 @@ gboolean gdu_device_is_mounted (GduDevice *device);
const char *gdu_device_get_mount_path (GduDevice *device);
char **gdu_device_get_mount_paths (GduDevice *device);
uid_t gdu_device_get_mounted_by_uid (GduDevice *device);
+gboolean gdu_device_get_presentation_hide (GduDevice *device);
const char *gdu_device_get_presentation_name (GduDevice *device);
const char *gdu_device_get_presentation_icon_name (GduDevice *device);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]