From 1aba6b49919a9ac68671fc49a525e48ccfa75c57 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Tue, 5 Jun 2012 10:44:57 +0200 Subject: [PATCH] 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 file changed, 2 insertions(+) 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_); \ -- 1.7.10.2