fp-device: Ensure finger status is set to proper type on property getter

Finger status is a flag not an enum.

Add tests.
This commit is contained in:
Marco Trevisan (Treviño)
2020-12-04 00:43:12 +01:00
committed by Marco Trevisan
parent de271a0e8d
commit b5496fd257
2 changed files with 14 additions and 1 deletions

View File

@@ -193,7 +193,7 @@ fp_device_get_property (GObject *object,
break;
case PROP_FINGER_STATUS:
g_value_set_enum (value, priv->finger_status);
g_value_set_flags (value, priv->finger_status);
break;
case PROP_DRIVER: