From 533811deef3155abe71dbace6960feee0aa8a35a Mon Sep 17 00:00:00 2001 From: Benjamin Berg Date: Wed, 31 Jul 2019 19:09:17 +0200 Subject: [PATCH] user: Support devices with more than 5 enroll steps We are currently adding support for Synaptics devices that require 8 steps. Add another row for images which brings us to up to 10 supportable steps for now. --- .../user-accounts/data/account-fingerprint.ui | 62 +++++++++++++++++++ panels/user-accounts/um-fingerprint-dialog.c | 2 +- 2 files changed, 63 insertions(+), 1 deletion(-) diff --git a/panels/user-accounts/data/account-fingerprint.ui b/panels/user-accounts/data/account-fingerprint.ui index e352e6de1..969f7ca30 100644 --- a/panels/user-accounts/data/account-fingerprint.ui +++ b/panels/user-accounts/data/account-fingerprint.ui @@ -243,6 +243,68 @@ 1 + + + True + 24 + 24 + + + True + gtk-no + 6 + + + 1 + + + + + True + gtk-no + 6 + + + 2 + + + + + True + gtk-no + 6 + + + 3 + + + + + True + gtk-no + 6 + + + 4 + + + + + True + gtk-no + 6 + + + 5 + + + + + False + False + 2 + + True diff --git a/panels/user-accounts/um-fingerprint-dialog.c b/panels/user-accounts/um-fingerprint-dialog.c index 48b12dcf3..f5dee5b95 100644 --- a/panels/user-accounts/um-fingerprint-dialog.c +++ b/panels/user-accounts/um-fingerprint-dialog.c @@ -32,7 +32,7 @@ #include "fingerprint-strings.h" /* This must match the number of images on the 2nd page in the UI file */ -#define MAX_ENROLL_STAGES 5 +#define MAX_ENROLL_STAGES 10 static GDBusProxy *manager = NULL; static GDBusConnection *connection = NULL; -- 2.24.1