[gnome-control-center/gnome-2-28] [about-me] Fix fingerprint name on 2nd page
- From: Bastien Nocera <hadess src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-2-28] [about-me] Fix fingerprint name on 2nd page
- Date: Fri, 29 Jan 2010 16:13:28 +0000 (UTC)
commit b0df5956d6a7d621cf1440887542cb4fb3001b4e
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jan 29 16:11:22 2010 +0000
[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 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/capplets/about-me/gnome-about-me-fingerprint.c b/capplets/about-me/gnome-about-me-fingerprint.c
index 49164be..dbd9f8f 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]