[accounts-dialog/lockbutton] Fix fingerprint enrollment label



commit 08b270b822e90d9d679546294e6549653fa49d80
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jan 29 16:12:32 2010 +0000

    Fix fingerprint enrollment label
    
    Which didn't match the finger selected on the first page.

 src/um-fingerprint-dialog.c |   14 ++++++++++++++
 1 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/src/um-fingerprint-dialog.c b/src/um-fingerprint-dialog.c
index 0884a18..144b7b4 100644
--- a/src/um-fingerprint-dialog.c
+++ b/src/um-fingerprint-dialog.c
@@ -305,13 +305,27 @@ selected_finger (GtkBuilder *dialog)
 static void
 finger_radio_button_toggled (GtkToggleButton *button, EnrollData *data)
 {
+        GtkBuilder *dialog = data->dialog;
+        char *msg;
+
         data->finger = selected_finger (data->dialog);
+
+        msg = g_strdup_printf (finger_str_to_msg (data->finger, data->is_swipe), data->name);
+        gtk_label_set_text (GTK_LABEL (WID("enroll-label")), msg);
+        g_free (msg);
 }
 
 static void
 finger_combobox_changed (GtkComboBox *combobox, EnrollData *data)
 {
+        GtkBuilder *dialog = data->dialog;
+        char *msg;
+
         data->finger = selected_finger (data->dialog);
+
+        msg = g_strdup_printf (finger_str_to_msg (data->finger, data->is_swipe), data->name);
+        gtk_label_set_text (GTK_LABEL (WID("enroll-label")), msg);
+        g_free (msg);
 }
 
 static void



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