diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2012-05-07 14:08:50 +0100 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-06-04 13:43:09 +0200 |
commit | 97755a8cef146519f688054d1bafe22f40bc17ff (patch) | |
tree | ee127497da1e27b548da8e8aa37d85aec06b6369 /telepathy-glib/presence-mixin.c | |
parent | 5f90a8dd35be28392615de7ba15f1d552ea5c477 (diff) | |
download | telepathy-glib-97755a8cef146519f688054d1bafe22f40bc17ff.tar.gz |
Use accessors rather than accessing TpBaseConnection fields directly
Diffstat (limited to 'telepathy-glib/presence-mixin.c')
-rw-r--r-- | telepathy-glib/presence-mixin.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/telepathy-glib/presence-mixin.c b/telepathy-glib/presence-mixin.c index 7a4e8dcfe..f3b3b8787 100644 --- a/telepathy-glib/presence-mixin.c +++ b/telepathy-glib/presence-mixin.c @@ -927,13 +927,15 @@ tp_presence_mixin_remove_status (TpSvcConnectionInterfacePresence *iface, GError *error = NULL; GHashTable *self_contact_statuses; TpPresenceStatus *self_status; + TpHandle self_handle; DEBUG ("called."); TP_BASE_CONNECTION_ERROR_IF_NOT_CONNECTED (conn, context); self_contacts = g_array_sized_new (TRUE, TRUE, sizeof (TpHandle), 1); - g_array_append_val (self_contacts, conn->self_handle); + self_handle = tp_base_connection_get_self_handle (conn); + g_array_append_val (self_contacts, self_handle); self_contact_statuses = mixin_cls->get_contact_statuses (obj, self_contacts, &error); @@ -946,7 +948,7 @@ tp_presence_mixin_remove_status (TpSvcConnectionInterfacePresence *iface, } self_status = (TpPresenceStatus *) g_hash_table_lookup (self_contact_statuses, - GUINT_TO_POINTER (conn->self_handle)); + GUINT_TO_POINTER (tp_base_connection_get_self_handle (conn))); if (!self_status) { |