[accounts-dialog] Fix enrolling with Upek Eikon II fingerprint reader



commit 05b367833493438b526f7bdfe06adc92085dd4ea
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Aug 19 18:01:35 2010 +0100

    Fix enrolling with Upek Eikon II fingerprint reader
    
    The upeke2 driver in libfprint (and the device) requires 5
    enrollment stages, but the UI has a hard-coded maximum of 3.
    Increase the maximum to 5.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=627249

 data/account-fingerprint.ui |   20 ++++++++++++++++++++
 src/um-fingerprint-dialog.c |    2 +-
 2 files changed, 21 insertions(+), 1 deletions(-)
---
diff --git a/data/account-fingerprint.ui b/data/account-fingerprint.ui
index 673248b..93a194e 100644
--- a/data/account-fingerprint.ui
+++ b/data/account-fingerprint.ui
@@ -217,6 +217,26 @@
               </packing>
             </child>
             <child>
+              <object class="GtkImage" id="image4">
+                <property name="visible">True</property>
+                <property name="stock">gtk-no</property>
+                <property name="icon-size">6</property>
+              </object>
+              <packing>
+                <property name="position">4</property>
+              </packing>
+            </child>
+            <child>
+              <object class="GtkImage" id="image5">
+                <property name="visible">True</property>
+                <property name="stock">gtk-no</property>
+                <property name="icon-size">6</property>
+              </object>
+              <packing>
+                <property name="position">5</property>
+              </packing>
+            </child>
+            <child>
               <placeholder/>
             </child>
           </object>
diff --git a/src/um-fingerprint-dialog.c b/src/um-fingerprint-dialog.c
index ea06a09..2147609 100644
--- a/src/um-fingerprint-dialog.c
+++ b/src/um-fingerprint-dialog.c
@@ -32,7 +32,7 @@
 #define WID(s) GTK_WIDGET (gtk_builder_get_object (dialog, s))
 
 /* This must match the number of images on the 2nd page in the UI file */
-#define MAX_ENROLL_STAGES 3
+#define MAX_ENROLL_STAGES 5
 
 static DBusGProxy *manager = NULL;
 static DBusGConnection *connection = NULL;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]