From 48ca05d7fa53b3cf8fd8d85756434c570cc8fd56 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Mon, 7 May 2012 19:43:08 +0100 Subject: Use TP_ERROR, not deprecated TP_ERRORS Signed-off-by: Simon McVittie Reviewed-by: Xavier Claessens Bug: https://bugs.freedesktop.org/show_bug.cgi?id=49600 --- src/idle-text.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/idle-text.c') 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 -- cgit v1.2.3