summaryrefslogtreecommitdiff
path: root/telepathy-glib/connection.c
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2012-05-02 13:54:19 +0200
committerXavier Claessens <xavier.claessens@collabora.co.uk>2012-05-02 14:13:21 +0200
commit4e142f577f0faa86096a90f90f5509805f776201 (patch)
tree1ec31f9d4bd62d676cb0a9db2e943142ee012330 /telepathy-glib/connection.c
parentf81a0bd99be209c74a48b9c2b8101fd6fb596c40 (diff)
downloadtelepathy-glib-4e142f577f0faa86096a90f90f5509805f776201.tar.gz
TpConnection: Deprecate _get_self_handle()
New code should be using _get_self_contact()
Diffstat (limited to 'telepathy-glib/connection.c')
-rw-r--r--telepathy-glib/connection.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/telepathy-glib/connection.c b/telepathy-glib/connection.c
index 6eb42a039..3a6f2567d 100644
--- a/telepathy-glib/connection.c
+++ b/telepathy-glib/connection.c
@@ -311,6 +311,8 @@ tp_connection_get_property (GObject *object,
{
TpConnection *self = TP_CONNECTION (object);
+ /* Deprecated properties uses deprecated getters */
+ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
switch (property_id)
{
case PROP_CONNECTION_MANAGER_NAME:
@@ -380,6 +382,7 @@ tp_connection_get_property (GObject *object,
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, property_id, pspec);
break;
}
+ G_GNUC_END_IGNORE_DEPRECATIONS
}
static void
@@ -1781,6 +1784,8 @@ tp_connection_class_init (TpConnectionClass *klass)
* To wait for a valid self-handle (and other properties), call
* tp_proxy_prepare_async() with the feature
* %TP_CONNECTION_FEATURE_CONNECTED.
+ *
+ * Deprecated: Use #TpConnection:self-contact instead.
*/
param_spec = g_param_spec_uint ("self-handle", "Self handle",
"The local user's Contact handle on this connection", 0, G_MAXUINT32,
@@ -2452,6 +2457,7 @@ _tp_connection_set_account (TpConnection *self,
* Returns: the value of the TpConnection:self-handle property
*
* Since: 0.7.26
+ * Deprecated: Use tp_connection_get_self_handle() instead.
*/
TpHandle
tp_connection_get_self_handle (TpConnection *self)