summaryrefslogtreecommitdiff
path: root/devkit-power-gobject
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2009-07-02 10:55:53 +0100
committerRichard Hughes <richard@hughsie.com>2009-07-02 10:55:53 +0100
commit1520785b904d249ede68ec1b0a0943d818e00888 (patch)
treee6ea0f5ab523ae490c930a12e8c8e1f61fa6bfba /devkit-power-gobject
parentcdf48e69d2c84f6f286eccab624ebbfc176a535e (diff)
trivial: ups devices have state too
Diffstat (limited to 'devkit-power-gobject')
-rw-r--r--devkit-power-gobject/dkp-device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/devkit-power-gobject/dkp-device.c b/devkit-power-gobject/dkp-device.c
index 0ca881c..f823941 100644
--- a/devkit-power-gobject/dkp-device.c
+++ b/devkit-power-gobject/dkp-device.c
@@ -405,7 +405,8 @@ dkp_device_print (const DkpDevice *device)
g_print (" rechargeable: %s\n", dkp_device_print_bool_to_text (device->priv->is_rechargeable));
if (device->priv->type == DKP_DEVICE_TYPE_BATTERY ||
device->priv->type == DKP_DEVICE_TYPE_MOUSE ||
- device->priv->type == DKP_DEVICE_TYPE_KEYBOARD)
+ device->priv->type == DKP_DEVICE_TYPE_KEYBOARD ||
+ device->priv->type == DKP_DEVICE_TYPE_UPS)
g_print (" state: %s\n", dkp_device_state_to_text (device->priv->state));
if (device->priv->type == DKP_DEVICE_TYPE_BATTERY) {
g_print (" energy: %g Wh\n", device->priv->energy);