[next] telepathy-glib: Ignore deprecations in TP_BASE_CONNECTION_ERROR_IF_NOT_CONNECTED

Xavier Claessens xclaesse at kemper.freedesktop.org
Wed Jun 6 02:40:26 PDT 2012


Module: telepathy-glib
Branch: next
Commit: 1aba6b49919a9ac68671fc49a525e48ccfa75c57
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=1aba6b49919a9ac68671fc49a525e48ccfa75c57

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

Ignore deprecations in TP_BASE_CONNECTION_ERROR_IF_NOT_CONNECTED

This macro is now implemented using in tp_base_connection_check_connected()
which is annotated with _TP_AVAILABLE_IN_UNRELEASED, but we shouldn't raise an
error if app don't want to use 0.20 API yet.

https://bugs.freedesktop.org/show_bug.cgi?id=50712

---

 telepathy-glib/base-connection.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/telepathy-glib/base-connection.h b/telepathy-glib/base-connection.h
index 8ca5877..5849295 100644
--- a/telepathy-glib/base-connection.h
+++ b/telepathy-glib/base-connection.h
@@ -213,7 +213,9 @@ gboolean tp_base_connection_channel_manager_iter_next (
     TpBaseConnection *c_ = (conn); \
     GError *e_ = NULL; \
     \
+    G_GNUC_BEGIN_IGNORE_DEPRECATIONS \
     if (!tp_base_connection_check_connected (c_, &e_)) \
+    G_GNUC_END_IGNORE_DEPRECATIONS \
       { \
         dbus_g_method_return_error ((context), e_); \
         g_error_free (e_); \



More information about the telepathy-commits mailing list