fp-device: Fix property getters for enroll stages and driver ID

We were returning an invalid type for the enroll stages, while trying to
get the class from the private instance for the device driver
This commit is contained in:
Marco Trevisan (Treviño) 2021-01-28 02:43:30 +01:00
parent 51009b48a0
commit 25a6c916aa

View file

@ -185,7 +185,7 @@ fp_device_get_property (GObject *object,
switch (prop_id)
{
case PROP_NR_ENROLL_STAGES:
g_value_set_int (value, priv->nr_enroll_stages);
g_value_set_uint (value, priv->nr_enroll_stages);
break;
case PROP_SCAN_TYPE:
@ -197,7 +197,7 @@ fp_device_get_property (GObject *object,
break;
case PROP_DRIVER:
g_value_set_static_string (value, FP_DEVICE_GET_CLASS (priv)->id);
g_value_set_static_string (value, FP_DEVICE_GET_CLASS (self)->id);
break;
case PROP_DEVICE_ID: