summaryrefslogtreecommitdiff
path: root/libupower-glib/up-types.c
diff options
context:
space:
mode:
Diffstat (limited to 'libupower-glib/up-types.c')
-rw-r--r--libupower-glib/up-types.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libupower-glib/up-types.c b/libupower-glib/up-types.c
index 525cd02..7cf9573 100644
--- a/libupower-glib/up-types.c
+++ b/libupower-glib/up-types.c
@@ -71,6 +71,8 @@ up_device_kind_to_string (UpDeviceKind type_enum)
return "computer";
case UP_DEVICE_KIND_GAMING_INPUT:
return "gaming-input";
+ case UP_DEVICE_KIND_PEN:
+ return "pen";
default:
return "unknown";
}
@@ -113,6 +115,8 @@ up_device_kind_from_string (const gchar *type)
return UP_DEVICE_KIND_TABLET;
if (g_str_equal (type, "gaming-input"))
return UP_DEVICE_KIND_GAMING_INPUT;
+ if (g_str_equal (type, "pen"))
+ return UP_DEVICE_KIND_PEN;
return UP_DEVICE_KIND_UNKNOWN;
}