diff -Nru unity-control-center-15.04.0+15.10.20150915/debian/changelog unity-control-center-15.04.0+15.10.20150923/debian/changelog --- unity-control-center-15.04.0+15.10.20150915/debian/changelog 2015-09-23 07:01:20.000000000 +0000 +++ unity-control-center-15.04.0+15.10.20150923/debian/changelog 2015-09-23 07:01:20.000000000 +0000 @@ -1,3 +1,11 @@ +unity-control-center (15.04.0+15.10.20150923-0ubuntu1) wily; urgency=medium + + * [bluetooth] restore the ssp pairing signature fix which was applied + to our gnome-bluetooth package but got discarded by error when + updating ucc to the new bluez version (LP: #1492443) + + -- Sebastien Bacher Wed, 23 Sep 2015 06:52:32 +0000 + unity-control-center (15.04.0+15.10.20150915-0ubuntu1) wily; urgency=medium [ Bastien Nocera ] diff -Nru unity-control-center-15.04.0+15.10.20150915/panels/bluetooth/gnome-bluetooth/lib/bluetooth-agent.c unity-control-center-15.04.0+15.10.20150923/panels/bluetooth/gnome-bluetooth/lib/bluetooth-agent.c --- unity-control-center-15.04.0+15.10.20150915/panels/bluetooth/gnome-bluetooth/lib/bluetooth-agent.c 2015-09-15 17:17:03.000000000 +0000 +++ unity-control-center-15.04.0+15.10.20150923/panels/bluetooth/gnome-bluetooth/lib/bluetooth-agent.c 2015-09-23 06:52:28.000000000 +0000 @@ -51,7 +51,7 @@ " " " " " " -" " +" " " " " " " " @@ -167,7 +167,7 @@ } static gboolean bluetooth_agent_display_passkey(BluetoothAgent *agent, - const char *path, guint passkey, guint8 entered, + const char *path, guint passkey, guint16 entered, GDBusMethodInvocation *invocation) { BluetoothAgentPrivate *priv = BLUETOOTH_AGENT_GET_PRIVATE(agent); @@ -388,9 +388,9 @@ } else if (g_strcmp0 (method_name, "DisplayPasskey") == 0) { char *path; guint32 passkey; - guint8 entered; + guint16 entered; - g_variant_get (parameters, "(ouy)", &path, &passkey, &entered); + g_variant_get (parameters, "(ouq)", &path, &passkey, &entered); bluetooth_agent_display_passkey (agent, path, passkey, entered, invocation); g_free (path); } else if (g_strcmp0 (method_name, "DisplayPinCode") == 0) { diff -Nru unity-control-center-15.04.0+15.10.20150915/panels/bluetooth/gnome-bluetooth/wizard/main.c unity-control-center-15.04.0+15.10.20150923/panels/bluetooth/gnome-bluetooth/wizard/main.c --- unity-control-center-15.04.0+15.10.20150915/panels/bluetooth/gnome-bluetooth/wizard/main.c 2015-09-15 17:17:03.000000000 +0000 +++ unity-control-center-15.04.0+15.10.20150923/panels/bluetooth/gnome-bluetooth/wizard/main.c 2015-09-23 06:52:28.000000000 +0000 @@ -442,7 +442,7 @@ guint entered, gpointer user_data) { - gchar *text, *done, *code; + gchar *text, *done, *code, *label; display_called = TRUE; gtk_assistant_set_current_page (window_assistant, PAGE_SSP_SETUP); @@ -469,18 +469,27 @@ done = g_string_free (str, FALSE); } else { - done = g_strdup (""); + done = g_strdup_printf("%s", code); } - gtk_widget_show (label_pin_help); + gtk_widget_show (label_ssp_pin); - gtk_label_set_markup(GTK_LABEL(label_ssp_pin_help), _("Please enter the following PIN:")); - text = g_strdup_printf("%s%s", done, code + entered); + if (target_ui_behaviour == PAIRING_UI_KEYBOARD) { + label = g_strdup_printf (_("Please enter the following PIN on '%s' and press “Enter” on the keyboard:"), target_name); + text = g_strdup_printf("%s⏎", done); + } + else { + label = g_strdup_printf (_("Please enter the following PIN on '%s':"), target_name); + text = g_strdup_printf("%s", done); + } + + gtk_label_set_markup(GTK_LABEL(label_ssp_pin_help), label); set_large_label (GTK_LABEL (label_ssp_pin), text); g_free(text); g_free(done); g_free(code); + g_free(label); g_dbus_method_invocation_return_value (invocation, NULL); }