From 5e8ba5457305da1fef2a891a3766e9612506c58b Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Tue, 26 Jan 2010 10:53:04 +0000 Subject: trivial: rename the new libupower 'type' to 'kind' to avoid clashing with GObject generated names --- src/up-device.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/up-device.c') diff --git a/src/up-device.c b/src/up-device.c index 7dad441..5ace215 100644 --- a/src/up-device.c +++ b/src/up-device.c @@ -65,7 +65,7 @@ struct UpDevicePrivate gboolean is_rechargeable; gboolean has_history; gboolean has_statistics; - UpDeviceType type; + UpDeviceKind type; UpDeviceState state; UpDeviceTechnology technology; gdouble capacity; /* percent */ @@ -433,11 +433,11 @@ up_device_get_id (UpDevice *device) gchar *id = NULL; /* line power */ - if (device->priv->type == UP_DEVICE_TYPE_LINE_POWER) { + if (device->priv->type == UP_DEVICE_KIND_LINE_POWER) { goto out; /* batteries */ - } else if (device->priv->type == UP_DEVICE_TYPE_BATTERY) { + } else if (device->priv->type == UP_DEVICE_KIND_BATTERY) { /* we don't have an ID if we are not present */ if (!device->priv->is_present) goto out; @@ -795,7 +795,7 @@ up_device_compute_object_path (UpDevice *device) const gchar *type; guint i; - type = up_device_type_to_text (device->priv->type); + type = up_device_kind_to_text (device->priv->type); native_path = device->priv->native_path; basename = g_path_get_basename (native_path); id = g_strjoin ("_", type, basename, NULL); @@ -1047,9 +1047,9 @@ up_device_class_init (UpDeviceClass *klass) PROP_TYPE, g_param_spec_uint ("type", NULL, NULL, - UP_DEVICE_TYPE_UNKNOWN, - UP_DEVICE_TYPE_LAST, - UP_DEVICE_TYPE_UNKNOWN, + UP_DEVICE_KIND_UNKNOWN, + UP_DEVICE_KIND_LAST, + UP_DEVICE_KIND_UNKNOWN, G_PARAM_READWRITE)); /** * UpDevice:state: -- cgit v1.2.1