[gnome-disk-utility] Add API for new :device-presentation-nopolicy property in DKD
- From: David Zeuthen <davidz src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] Add API for new :device-presentation-nopolicy property in DKD
- Date: Mon, 17 Aug 2009 15:02:07 +0000 (UTC)
commit a596ee0e3828a649e42535c6a9ca713ab1d78739
Author: David Zeuthen <davidz redhat com>
Date: Mon Aug 17 10:58:43 2009 -0400
Add API for new :device-presentation-nopolicy property in DKD
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 744484c..e6a6dc8 100644
--- a/src/gdu/gdu-device.c
+++ b/src/gdu/gdu-device.c
@@ -73,6 +73,7 @@ typedef struct
char **device_mount_paths;
uid_t device_mounted_by_uid;
gboolean device_presentation_hide;
+ gboolean device_presentation_nopolicy;
char *device_presentation_name;
char *device_presentation_icon_name;
guint64 device_size;
@@ -234,6 +235,8 @@ collect_props (const char *key, const GValue *value, DeviceProperties *props)
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-nopolicy") == 0)
+ props->device_presentation_nopolicy = 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)
@@ -895,6 +898,12 @@ gdu_device_get_presentation_hide (GduDevice *device)
return device->priv->props->device_presentation_hide;
}
+gboolean
+gdu_device_get_presentation_nopolicy (GduDevice *device)
+{
+ return device->priv->props->device_presentation_nopolicy;
+}
+
const char *
gdu_device_get_presentation_name (GduDevice *device)
{
diff --git a/src/gdu/gdu-device.h b/src/gdu/gdu-device.h
index 11e53a1..0ef276b 100644
--- a/src/gdu/gdu-device.h
+++ b/src/gdu/gdu-device.h
@@ -94,6 +94,7 @@ 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);
+gboolean gdu_device_get_presentation_nopolicy (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]