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

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