summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2008-08-26 16:04:31 +0100
committerRichard Hughes <richard@hughsie.com>2008-08-26 16:04:31 +0100
commita8bca8a3c61e7f7f5cf61b4a31503ca8c3e34401 (patch)
tree03c06727e2123ba3d66dcff962dfe78afe5792e9
parentb5022f451a4f7c1829e63843935bd578d2a4feb0 (diff)
trivial: forgot to change one file
-rw-r--r--libdevkit-power/dkp-object.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/libdevkit-power/dkp-object.c b/libdevkit-power/dkp-object.c
index cffacf5..ff2df68 100644
--- a/libdevkit-power/dkp-object.c
+++ b/libdevkit-power/dkp-object.c
@@ -74,35 +74,35 @@ dkp_object_collect_props (const char *key, const GValue *value, DkpObject *obj)
obj->update_time = g_value_get_uint64 (value);
else if (strcmp (key, "type") == 0)
obj->type = dkp_device_type_from_text (g_value_get_string (value));
- else if (strcmp (key, "line-power-online") == 0)
+ else if (strcmp (key, "online") == 0)
obj->online = g_value_get_boolean (value);
- else if (strcmp (key, "battery-energy") == 0)
+ else if (strcmp (key, "energy") == 0)
obj->energy = g_value_get_double (value);
- else if (strcmp (key, "battery-energy-empty") == 0)
+ else if (strcmp (key, "energy-empty") == 0)
obj->energy_empty = g_value_get_double (value);
- else if (strcmp (key, "battery-energy-full") == 0)
+ else if (strcmp (key, "energy-full") == 0)
obj->energy_full = g_value_get_double (value);
- else if (strcmp (key, "battery-energy-full-design") == 0)
+ else if (strcmp (key, "energy-full-design") == 0)
obj->energy_full_design = g_value_get_double (value);
- else if (strcmp (key, "battery-energy-rate") == 0)
+ else if (strcmp (key, "energy-rate") == 0)
obj->energy_rate = g_value_get_double (value);
- else if (strcmp (key, "battery-time-to-full") == 0)
+ else if (strcmp (key, "time-to-full") == 0)
obj->time_to_full = g_value_get_int64 (value);
- else if (strcmp (key, "battery-time-to-empty") == 0)
+ else if (strcmp (key, "time-to-empty") == 0)
obj->time_to_empty = g_value_get_int64 (value);
- else if (strcmp (key, "battery-percentage") == 0)
+ else if (strcmp (key, "percentage") == 0)
obj->percentage = g_value_get_double (value);
- else if (strcmp (key, "battery-technology") == 0)
+ else if (strcmp (key, "technology") == 0)
obj->technology = dkp_device_technology_from_text (g_value_get_string (value));
- else if (strcmp (key, "battery-is-present") == 0)
+ else if (strcmp (key, "is-present") == 0)
obj->is_present = g_value_get_boolean (value);
- else if (strcmp (key, "battery-is-rechargeable") == 0)
+ else if (strcmp (key, "is-rechargeable") == 0)
obj->is_rechargeable = g_value_get_boolean (value);
else if (strcmp (key, "power-supply") == 0)
obj->power_supply = g_value_get_boolean (value);
- else if (strcmp (key, "battery-capacity") == 0)
+ else if (strcmp (key, "capacity") == 0)
obj->capacity = g_value_get_double (value);
- else if (strcmp (key, "battery-state") == 0)
+ else if (strcmp (key, "state") == 0)
obj->state = dkp_device_state_from_text (g_value_get_string (value));
else
handled = FALSE;