summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2010-01-29 16:11:22 +0000
committerBastien Nocera <hadess@hadess.net>2010-01-29 16:14:25 +0000
commit2545c082acf06cb57e90a2b75982858427358e00 (patch)
treeabd451cf8425c8ba44b316f8f702c94fbceeb3bf
parent6769441a7c004666d4a1eb54b9dacda5c778f19e (diff)
downloadgnome-control-center-2545c082acf06cb57e90a2b75982858427358e00.tar.gz
[about-me] Fix fingerprint name on 2nd page
We were never changing the enrollment page's label to match the selected fingerprint.
-rw-r--r--capplets/about-me/gnome-about-me-fingerprint.c14
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 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