[gnome-bluetooth] wizard: Fix PIN code return values



commit be14c7e0574ecd79c08b857dd22a05f61ff85260
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Sep 28 14:42:55 2011 +0100

    wizard: Fix PIN code return values

 wizard/main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/wizard/main.c b/wizard/main.c
index 1fdc1cf..6b3be9d 100644
--- a/wizard/main.c
+++ b/wizard/main.c
@@ -164,7 +164,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_dbus_method_invocation_return_value (invocation, g_variant_new_string (pincode));
+	g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", pincode));
 
 	return TRUE;
 }
@@ -227,7 +227,7 @@ matches_cb (GtkButton *button,
 	invocation = g_object_get_data (G_OBJECT (button), "invocation");
 	gtk_widget_set_sensitive (does_not_match_button, FALSE);
 	gtk_widget_set_sensitive (matches_button, FALSE);
-	g_dbus_method_invocation_return_value (invocation, g_variant_new_string (""));
+	g_dbus_method_invocation_return_value (invocation, g_variant_new ("(s)", ""));
 
 	g_object_set_data (G_OBJECT(does_not_match_button), "invocation", NULL);
 	g_object_set_data (G_OBJECT(matches_button), "invocation", NULL);



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