Blame SOURCES/0001-user-Support-devices-with-more-than-5-enroll-steps.patch

a780b2
From 533811deef3155abe71dbace6960feee0aa8a35a Mon Sep 17 00:00:00 2001
a780b2
From: Benjamin Berg <bberg@redhat.com>
a780b2
Date: Wed, 31 Jul 2019 19:09:17 +0200
a780b2
Subject: [PATCH] user: Support devices with more than 5 enroll steps
a780b2
a780b2
We are currently adding support for Synaptics devices that require 8
a780b2
steps. Add another row for images which brings us to up to 10
a780b2
supportable steps for now.
a780b2
---
a780b2
 .../user-accounts/data/account-fingerprint.ui | 62 +++++++++++++++++++
a780b2
 panels/user-accounts/um-fingerprint-dialog.c  |  2 +-
a780b2
 2 files changed, 63 insertions(+), 1 deletion(-)
a780b2
a780b2
diff --git a/panels/user-accounts/data/account-fingerprint.ui b/panels/user-accounts/data/account-fingerprint.ui
a780b2
index e352e6de1..969f7ca30 100644
a780b2
--- a/panels/user-accounts/data/account-fingerprint.ui
a780b2
+++ b/panels/user-accounts/data/account-fingerprint.ui
a780b2
@@ -243,6 +243,68 @@
a780b2
             <property name="position">1</property>
a780b2
           </packing>
a780b2
         </child>
a780b2
+        <child>
a780b2
+          <object class="GtkHBox" id="enroll2_hbox">
a780b2
+            <property name="visible">True</property>
a780b2
+            <property name="margin-top">24</property>
a780b2
+            <property name="margin-bottom">24</property>
a780b2
+            <child>
a780b2
+              <object class="GtkImage" id="image6">
a780b2
+                <property name="visible">True</property>
a780b2
+                <property name="stock">gtk-no</property>
a780b2
+                <property name="icon-size">6</property>
a780b2
+              </object>
a780b2
+              <packing>
a780b2
+                <property name="position">1</property>
a780b2
+              </packing>
a780b2
+            </child>
a780b2
+            <child>
a780b2
+              <object class="GtkImage" id="image7">
a780b2
+                <property name="visible">True</property>
a780b2
+                <property name="stock">gtk-no</property>
a780b2
+                <property name="icon-size">6</property>
a780b2
+              </object>
a780b2
+              <packing>
a780b2
+                <property name="position">2</property>
a780b2
+              </packing>
a780b2
+            </child>
a780b2
+            <child>
a780b2
+              <object class="GtkImage" id="image8">
a780b2
+                <property name="visible">True</property>
a780b2
+                <property name="stock">gtk-no</property>
a780b2
+                <property name="icon-size">6</property>
a780b2
+              </object>
a780b2
+              <packing>
a780b2
+                <property name="position">3</property>
a780b2
+              </packing>
a780b2
+            </child>
a780b2
+            <child>
a780b2
+              <object class="GtkImage" id="image9">
a780b2
+                <property name="visible">True</property>
a780b2
+                <property name="stock">gtk-no</property>
a780b2
+                <property name="icon-size">6</property>
a780b2
+              </object>
a780b2
+              <packing>
a780b2
+                <property name="position">4</property>
a780b2
+              </packing>
a780b2
+            </child>
a780b2
+            <child>
a780b2
+              <object class="GtkImage" id="image10">
a780b2
+                <property name="visible">True</property>
a780b2
+                <property name="stock">gtk-no</property>
a780b2
+                <property name="icon-size">6</property>
a780b2
+              </object>
a780b2
+              <packing>
a780b2
+                <property name="position">5</property>
a780b2
+              </packing>
a780b2
+            </child>
a780b2
+          </object>
a780b2
+          <packing>
a780b2
+            <property name="expand">False</property>
a780b2
+            <property name="fill">False</property>
a780b2
+            <property name="position">2</property>
a780b2
+          </packing>
a780b2
+        </child>
a780b2
         <child>
a780b2
           <object class="GtkLabel" id="status-label">
a780b2
             <property name="visible">True</property>
a780b2
diff --git a/panels/user-accounts/um-fingerprint-dialog.c b/panels/user-accounts/um-fingerprint-dialog.c
a780b2
index 48b12dcf3..f5dee5b95 100644
a780b2
--- a/panels/user-accounts/um-fingerprint-dialog.c
a780b2
+++ b/panels/user-accounts/um-fingerprint-dialog.c
a780b2
@@ -32,7 +32,7 @@
a780b2
 #include "fingerprint-strings.h"
a780b2
 
a780b2
 /* This must match the number of images on the 2nd page in the UI file */
a780b2
-#define MAX_ENROLL_STAGES 5
a780b2
+#define MAX_ENROLL_STAGES 10
a780b2
 
a780b2
 static GDBusProxy *manager = NULL;
a780b2
 static GDBusConnection *connection = NULL;
a780b2
-- 
a780b2
2.24.1
a780b2