diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-10-28 13:17:22 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2013-11-11 16:49:05 +0000 |
commit | a48cf1a835d94ea6220d67883eca4071e686a4a7 (patch) | |
tree | 75ce749de3bc8dfaabfd2fc3183b0da03dc226a9 /examples | |
parent | 689c4297ff8cd7cf971ba4bf46ad605a3149f6b4 (diff) | |
download | telepathy-glib-a48cf1a835d94ea6220d67883eca4071e686a4a7.tar.gz |
tp_protocol_identify_account_async: add and test
To make the test a little more interesting and a little more realistic,
we normalize the 'account' parameter to lower-case.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=71048
Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/cm/echo-message-parts/protocol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/cm/echo-message-parts/protocol.c b/examples/cm/echo-message-parts/protocol.c index 4512216b9..ae8894a26 100644 --- a/examples/cm/echo-message-parts/protocol.c +++ b/examples/cm/echo-message-parts/protocol.c @@ -115,7 +115,7 @@ identify_account (TpBaseProtocol *self G_GNUC_UNUSED, const gchar *account = tp_asv_get_string (asv, "account"); if (account != NULL) - return g_strdup (account); + return g_utf8_strdown (account, -1); g_set_error (error, TP_ERROR, TP_ERROR_INVALID_ARGUMENT, "'account' parameter not given"); |