telepathy-logger: simple-conn: use TP_ERROR instead of TP_ERRORS

Guillaume Desmottes gdesmott at kemper.freedesktop.org
Tue Jun 5 01:57:18 PDT 2012


Module: telepathy-logger
Branch: master
Commit: fadc6d5367b3e0761b2fd8e6097630ec47e47f80
URL:    http://cgit.freedesktop.org/telepathy/telepathy-logger/commit/?id=fadc6d5367b3e0761b2fd8e6097630ec47e47f80

Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date:   Tue Jun  5 10:52:28 2012 +0200

simple-conn: use TP_ERROR instead of TP_ERRORS

The latter has been deprecated. Ideally we should sync this file from tp-glib
but the current version depends on tp-glib 0.19.x

---

 tests/lib/simple-conn.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/lib/simple-conn.c b/tests/lib/simple-conn.c
index cbe3eda..f065825 100644
--- a/tests/lib/simple-conn.c
+++ b/tests/lib/simple-conn.c
@@ -151,14 +151,14 @@ tp_tests_simple_normalize_contact (TpHandleRepoIface *repo,
 {
   if (id[0] == '\0')
     {
-      g_set_error (error, TP_ERRORS, TP_ERROR_INVALID_HANDLE,
+      g_set_error (error, TP_ERROR, TP_ERROR_INVALID_HANDLE,
           "ID must not be empty");
       return NULL;
     }
 
   if (strchr (id, ' ') != NULL)
     {
-      g_set_error (error, TP_ERRORS, TP_ERROR_INVALID_HANDLE,
+      g_set_error (error, TP_ERROR, TP_ERROR_INVALID_HANDLE,
           "ID must not contain spaces");
       return NULL;
     }



More information about the telepathy-commits mailing list