[gnome-bluetooth] wizard: do not use a random PIN if user choose a fixed one
- From: Daniele Forsi <dforsi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] wizard: do not use a random PIN if user choose a fixed one
- Date: Sun, 18 Dec 2011 10:50:52 +0000 (UTC)
commit b9f12ef311b02f5557717bd8d1695dce5c88108d
Author: Daniele Forsi <dforsi src gnome org>
Date: Sun Dec 18 11:35:15 2011 +0100
wizard: do not use a random PIN if user choose a fixed one
User input was checked only in the select_device_changed() callback.
https://bugzilla.gnome.org/show_bug.cgi?id=666192
wizard/main.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/wizard/main.c b/wizard/main.c
index 3d75ece..143fb8b 100644
--- a/wizard/main.c
+++ b/wizard/main.c
@@ -163,6 +163,7 @@ pincode_callback (GDBusMethodInvocation *invocation,
/* Only show the pincode page if the pincode isn't automatic */
if (automatic_pincode == FALSE)
gtk_assistant_set_current_page (window_assistant, PAGE_SETUP);
+ g_debug ("Using pincode \"%s\"", pincode);
g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", pincode));
return TRUE;
@@ -778,6 +779,9 @@ pin_option_button_clicked (GtkButton *button,
gtk_dialog_run (GTK_DIALOG (pin_dialog));
gtk_widget_hide (pin_dialog);
+ g_free (pincode);
+ pincode = g_strdup (user_pincode);
+ automatic_pincode = user_pincode != NULL;
}
static int
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]