summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-08-17 09:24:25 +0200
committerraveit65 <[email protected]>2020-09-04 22:29:20 +0200
commitb788b4c26201c5810051da8d4951f901a8ea34eb (patch)
treed1f181802bce49cebbfd29b5f017c5db21bc33a1
parent085164b567cd902e8e56f3f43aaa95dafe86c11d (diff)
downloadmate-control-center-b788b4c26201c5810051da8d4951f901a8ea34eb.tar.bz2
mate-control-center-b788b4c26201c5810051da8d4951f901a8ea34eb.tar.xz
mate-about-me-fingerprint: Use g_variant_is_of_type for checking types
-rw-r--r--capplets/about-me/mate-about-me-fingerprint.c4
1 files 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;
}