[gnome-control-center/gnome-2-32] Fix enrolling with Upek Eikon II fingerprint reader



commit 51bd52c2680c731fa649b51089277720aff46982
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Aug 18 11:42:33 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

 capplets/about-me/gnome-about-me-fingerprint.c  |    2 +-
 capplets/about-me/gnome-about-me-fingerprint.ui |   20 ++++++++++++++++++++
 2 files changed, 21 insertions(+), 1 deletions(-)
---
diff --git a/capplets/about-me/gnome-about-me-fingerprint.c b/capplets/about-me/gnome-about-me-fingerprint.c
index b285503..88b1d4f 100644
--- a/capplets/about-me/gnome-about-me-fingerprint.c
+++ b/capplets/about-me/gnome-about-me-fingerprint.c
@@ -25,7 +25,7 @@
 #include "capplet-util.h"
 
 /* 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;
diff --git a/capplets/about-me/gnome-about-me-fingerprint.ui b/capplets/about-me/gnome-about-me-fingerprint.ui
index d94a5e8..7f15433 100644
--- a/capplets/about-me/gnome-about-me-fingerprint.ui
+++ b/capplets/about-me/gnome-about-me-fingerprint.ui
@@ -219,6 +219,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>



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