summaryrefslogtreecommitdiff
path: root/src/text-helper.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2012-05-07 17:17:15 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2012-05-07 19:17:57 +0100
commitffa3b8074f3cddbaa9796871a1d887f3327456d4 (patch)
tree9fea24334cbde81973465b2deade8814536ffeaf /src/text-helper.c
parent83c0f5a8f674794bab1b62aebb2c1bf21fa34c95 (diff)
downloadtelepathy-salut-ffa3b8074f3cddbaa9796871a1d887f3327456d4.tar.gz
Use TP_ERROR instead of long-deprecated TP_ERRORS
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49594 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
Diffstat (limited to 'src/text-helper.c')
-rw-r--r--src/text-helper.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/text-helper.c b/src/text-helper.c
index 4c15ab05..c21842fd 100644
--- a/src/text-helper.c
+++ b/src/text-helper.c
@@ -68,7 +68,7 @@ create_message_stanza (const gchar *from, const gchar *to,
{
DEBUG ("invalid message type %u", type);
- g_set_error (error, TP_ERRORS, TP_ERROR_INVALID_ARGUMENT,
+ g_set_error (error, TP_ERROR, TP_ERROR_INVALID_ARGUMENT,
"invalid message type: %u", type);
return NULL;
@@ -248,7 +248,7 @@ text_helper_validate_tp_message (TpMessage *message,
if (tp_message_count_parts (message) != 2)
{
- g_set_error (error, TP_ERRORS, TP_ERROR_INVALID_ARGUMENT,
+ g_set_error (error, TP_ERROR, TP_ERROR_INVALID_ARGUMENT,
"Invalid number of message parts, expected 2, got %d",
tp_message_count_parts (message));
return FALSE;
@@ -261,7 +261,7 @@ text_helper_validate_tp_message (TpMessage *message,
if (!valid || msgtype > TP_CHANNEL_TEXT_MESSAGE_TYPE_NOTICE)
{
- g_set_error (error, TP_ERRORS, TP_ERROR_INVALID_ARGUMENT,
+ g_set_error (error, TP_ERROR, TP_ERROR_INVALID_ARGUMENT,
"Invalid message type");
return FALSE;
}
@@ -271,7 +271,7 @@ text_helper_validate_tp_message (TpMessage *message,
if (msgtext == NULL)
{
- g_set_error (error, TP_ERRORS, TP_ERROR_INVALID_ARGUMENT,
+ g_set_error (error, TP_ERROR, TP_ERROR_INVALID_ARGUMENT,
"Empty message content");
return FALSE;
}