summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-18 12:59:41 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2013-09-18 14:57:07 +0200
commit35f5131ef8ce3660ca57854142e2c9a77cb7382c (patch)
treee05c3cf2262038143472365777117c8ad7567648
parent246e201a0ffcce7648b5cd3818ad889647b79ba5 (diff)
downloadtelepathy-glib-35f5131ef8ce3660ca57854142e2c9a77cb7382c.tar.gz
base-protocol: add Presence.Statuses as immutable properties
https://bugs.freedesktop.org/show_bug.cgi?id=69520
-rw-r--r--telepathy-glib/base-protocol.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/telepathy-glib/base-protocol.c b/telepathy-glib/base-protocol.c
index 44a5acc24..926cdcdb9 100644
--- a/telepathy-glib/base-protocol.c
+++ b/telepathy-glib/base-protocol.c
@@ -832,7 +832,11 @@ tp_base_protocol_get_immutable_properties (TpBaseProtocol *self)
TP_IFACE_PROTOCOL_INTERFACE_ADDRESSING, "AddressableURISchemes",
NULL);
- /* FIXME: we should add Presence properties as well */
+ if (tp_strv_contains ((const gchar * const *) self->priv->interfaces,
+ TP_IFACE_PROTOCOL_INTERFACE_PRESENCE))
+ tp_dbus_properties_mixin_fill_properties_hash ((GObject *) self, table,
+ TP_IFACE_PROTOCOL_INTERFACE_PRESENCE, "Statuses",
+ NULL);
return table;
}