[gnome-bluetooth] wizard: fix again the choice of the automatic PIN



commit 2f1cde9625c5dea6784faf705a82c6b09e0a1b2f
Author: Daniele Forsi <dforsi src gnome org>
Date:   Sun Dec 18 22:45:05 2011 +0100

    wizard: fix again the choice of the automatic PIN
    
    Give a value for every "pin" data to remove the ambiguity between NULL
    PIN code and "pin" data not set, else random and custom PIN will be
    swapped in the dialog. Now a NULL pointer means "use a random PIN" both
    in the PIN database and in the GUI, while an empty string means "use
    the contents of the text entry".

 wizard/main.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/wizard/main.c b/wizard/main.c
index d01c4dd..84e3953 100644
--- a/wizard/main.c
+++ b/wizard/main.c
@@ -828,11 +828,12 @@ create_wizard (void)
 	radio_custom = W("radio_custom");
 	entry_custom = W("entry_custom");
 
-	g_object_set_data (G_OBJECT (radio_auto), "pin", "");
+	g_object_set_data (G_OBJECT (radio_auto), "pin", NULL);
 	g_object_set_data (G_OBJECT (radio_0000), "pin", "0000");
 	g_object_set_data (G_OBJECT (radio_1111), "pin", "1111");
 	g_object_set_data (G_OBJECT (radio_1234), "pin", "1234");
 	g_object_set_data (G_OBJECT (radio_none), "pin", "NULL");
+	g_object_set_data (G_OBJECT (radio_custom), "pin", "");
 	g_object_set_data (G_OBJECT (radio_custom), "entry", entry_custom);
 
 	gtk_builder_connect_signals(builder, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]