telepathy-glib: base-protocol: add Presence. Statuses as immutable properties
Guillaume Desmottes
gdesmott at kemper.freedesktop.org
Wed Sep 18 05:57:15 PDT 2013
Module: telepathy-glib
Branch: master
Commit: 35f5131ef8ce3660ca57854142e2c9a77cb7382c
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=35f5131ef8ce3660ca57854142e2c9a77cb7382c
Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date: Wed Sep 18 12:59:41 2013 +0200
base-protocol: add Presence.Statuses as immutable properties
https://bugs.freedesktop.org/show_bug.cgi?id=69520
---
telepathy-glib/base-protocol.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/telepathy-glib/base-protocol.c b/telepathy-glib/base-protocol.c
index 44a5acc..926cdcd 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;
}
More information about the telepathy-commits
mailing list