[gnome-bluetooth] wizard: Only show PIN page for random pin codes
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] wizard: Only show PIN page for random pin codes
- Date: Wed, 13 Nov 2013 16:01:28 +0000 (UTC)
commit 89554c8076beaa445c8de160f41e478809fdff8d
Author: Bastien Nocera <hadess hadess net>
Date: Wed Nov 13 15:51:57 2013 +0100
wizard: Only show PIN page for random pin codes
When pincode_callback() is called, only show the PIN page for
random PIN codes, otherwise we'll show the stock, unmodified
page asking to enter 123456 for device Foobar.
wizard/main.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/wizard/main.c b/wizard/main.c
index 5d9de95..749cb0e 100644
--- a/wizard/main.c
+++ b/wizard/main.c
@@ -202,13 +202,13 @@ pincode_callback (GDBusMethodInvocation *invocation,
GDBusProxy *device,
gpointer user_data)
{
- gtk_assistant_set_current_page (window_assistant, PAGE_SETUP);
-
replace_target_name_for_device (device);
if (user_pincode == NULL) {
char *help, *pincode_display;
+ gtk_assistant_set_current_page (window_assistant, PAGE_SETUP);
+
pincode_display = NULL;
switch (target_ui_behaviour) {
@@ -233,7 +233,6 @@ pincode_callback (GDBusMethodInvocation *invocation,
g_free (help);
set_large_label (GTK_LABEL (label_pin), pincode_display ? pincode_display : user_pincode);
g_free (pincode_display);
-
}
gtk_widget_show (button_cancel);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]