From d0193ecc58b6eab69b4c4d3c9667c50bfc033b49 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 7 May 2012 11:10:17 +0200 Subject: Use TP_ERROR instead of TP_ERRORS The latter has been deprecated in tp-glib master. --- libempathy/empathy-tp-chat.c | 2 +- libempathy/empathy-tp-contact-factory.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'libempathy') diff --git a/libempathy/empathy-tp-chat.c b/libempathy/empathy-tp-chat.c index 390f9a533..b35290cde 100644 --- a/libempathy/empathy-tp-chat.c +++ b/libempathy/empathy-tp-chat.c @@ -494,7 +494,7 @@ message_sent_cb (TpTextChannel *channel, static TpChannelTextSendError error_to_text_send_error (GError *error) { - if (error->domain != TP_ERRORS) + if (error->domain != TP_ERROR) return TP_CHANNEL_TEXT_SEND_ERROR_UNKNOWN; switch (error->code) diff --git a/libempathy/empathy-tp-contact-factory.c b/libempathy/empathy-tp-contact-factory.c index 681c882ee..111e3190a 100644 --- a/libempathy/empathy-tp-contact-factory.c +++ b/libempathy/empathy-tp-contact-factory.c @@ -298,7 +298,7 @@ get_contact_by_handle_cb (TpConnection *connection, * so the caller of empathy_tp_contact_factory_get_from_handle can * rely on the error to check if the operation succeeded or not. */ - err = g_error_new_literal (TP_ERRORS, TP_ERROR_INVALID_HANDLE, + err = g_error_new_literal (TP_ERROR, TP_ERROR_INVALID_HANDLE, "handle is invalid"); } else { -- cgit v1.2.3