From 2545c082acf06cb57e90a2b75982858427358e00 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Fri, 29 Jan 2010 16:11:22 +0000 Subject: [about-me] Fix fingerprint name on 2nd page We were never changing the enrollment page's label to match the selected fingerprint. --- capplets/about-me/gnome-about-me-fingerprint.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/capplets/about-me/gnome-about-me-fingerprint.c b/capplets/about-me/gnome-about-me-fingerprint.c index 49164be63..dbd9f8fbd 100644 --- a/capplets/about-me/gnome-about-me-fingerprint.c +++ b/capplets/about-me/gnome-about-me-fingerprint.c @@ -301,13 +301,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 -- cgit v1.2.1