From 25a6c916aa77b46f24bc3ed6dbd8bc676a477969 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 28 Jan 2021 02:43:30 +0100 Subject: [PATCH] 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 --- libfprint/fp-device.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libfprint/fp-device.c b/libfprint/fp-device.c index f752a48..a5973e8 100644 --- a/libfprint/fp-device.c +++ b/libfprint/fp-device.c @@ -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: