From b788b4c26201c5810051da8d4951f901a8ea34eb Mon Sep 17 00:00:00 2001 From: rbuj Date: Mon, 17 Aug 2020 09:24:25 +0200 Subject: mate-about-me-fingerprint: Use g_variant_is_of_type for checking types --- capplets/about-me/mate-about-me-fingerprint.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/capplets/about-me/mate-about-me-fingerprint.c b/capplets/about-me/mate-about-me-fingerprint.c index 29f3f416..a6bced28 100644 --- a/capplets/about-me/mate-about-me-fingerprint.c +++ b/capplets/about-me/mate-about-me-fingerprint.c @@ -732,9 +732,9 @@ enroll_fingerprints (GtkWindow *parent, GtkWidget *enable, GtkWidget *disable) g_variant_get (ret, "(a{sv})", &iter); while (g_variant_iter_loop (iter, "{sv}", &key, &value)) { - if (g_str_equal (key, "name") && g_variant_get_type (value) == G_VARIANT_TYPE_STRING) { + if (g_str_equal (key, "name") && g_variant_is_of_type (value, G_VARIANT_TYPE ("(s)"))) { data->name = g_strdup (g_variant_get_string (value, NULL)); - } else if (g_str_equal (key, "scan-type") && g_variant_get_type (value) == G_VARIANT_TYPE_STRING) { + } else if (g_str_equal (key, "scan-type") && g_variant_is_of_type (value, G_VARIANT_TYPE ("(s)"))) { if (g_str_equal (g_variant_get_string (value, NULL), "swipe")) data->is_swipe = TRUE; } -- cgit v1.2.1