summaryrefslogtreecommitdiff
path: root/src/idle-text.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2012-05-07 19:43:08 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2012-05-08 12:02:46 +0100
commit48ca05d7fa53b3cf8fd8d85756434c570cc8fd56 (patch)
tree859e594a962718c914a50001be759d72444ae53f /src/idle-text.c
parent307faa064970b2830c618d470fe56eec3ac191c6 (diff)
Use TP_ERROR, not deprecated TP_ERRORS
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk> Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk> Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49600
Diffstat (limited to 'src/idle-text.c')
-rw-r--r--src/idle-text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/idle-text.c b/src/idle-text.c
index 25ee678..4b439a4 100644
--- a/src/idle-text.c
+++ b/src/idle-text.c
@@ -95,7 +95,7 @@ idle_text_encode_and_split(TpChannelTextMessageType type,
break;
default:
IDLE_DEBUG("unsupported message type %u", type);
- g_set_error(error, TP_ERRORS, TP_ERROR_NOT_IMPLEMENTED, "unsupported message type %u", type);
+ g_set_error(error, TP_ERROR, TP_ERROR_NOT_IMPLEMENTED, "unsupported message type %u", type);
return NULL;
}
@@ -163,7 +163,7 @@ void idle_text_send(GObject *obj, TpMessage *message, TpMessageSendingFlags flag
#define INVALID_ARGUMENT(msg, ...) \
G_STMT_START { \
IDLE_DEBUG (msg , ## __VA_ARGS__); \
- g_set_error (&error, TP_ERRORS, TP_ERROR_INVALID_ARGUMENT, \
+ g_set_error (&error, TP_ERROR, TP_ERROR_INVALID_ARGUMENT, \
msg , ## __VA_ARGS__); \
goto failed; \
} G_STMT_END