diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-04-11 15:59:19 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-04-12 17:12:26 +0200 |
commit | abfc9014b493106bc76520faf9d54e5c9869e197 (patch) | |
tree | b090e1230a210189b196140ecebad335a4a0c1f1 | |
parent | 8f047aaaf9f0d5bdadb652cbc455d683c449ded3 (diff) |
tp_base_protocol_get_immutable_properties: add Avatars property
-rw-r--r-- | telepathy-glib/base-protocol.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/telepathy-glib/base-protocol.c b/telepathy-glib/base-protocol.c index 2e3311408..720cedebc 100644 --- a/telepathy-glib/base-protocol.c +++ b/telepathy-glib/base-protocol.c @@ -685,8 +685,21 @@ tp_base_protocol_get_immutable_properties (TpBaseProtocol *self) TP_IFACE_PROTOCOL, "AuthenticationTypes", NULL); - /* FIXME: when we support avatar requirements, etc., we could use - * tp_dbus_properties_mixin_fill_properties_hash() for them */ + if (cls->get_avatar_details != NULL) + { + tp_dbus_properties_mixin_fill_properties_hash ((GObject *) self, table, + TP_IFACE_PROTOCOL_INTERFACE_AVATARS, "SupportedAvatarMIMETypes", + TP_IFACE_PROTOCOL_INTERFACE_AVATARS, "MinimumAvatarHeight", + TP_IFACE_PROTOCOL_INTERFACE_AVATARS, "MinimumAvatarWidth", + TP_IFACE_PROTOCOL_INTERFACE_AVATARS, "RecommendedAvatarHeight", + TP_IFACE_PROTOCOL_INTERFACE_AVATARS, "RecommendedAvatarWidth", + TP_IFACE_PROTOCOL_INTERFACE_AVATARS, "MaximumAvatarHeight", + TP_IFACE_PROTOCOL_INTERFACE_AVATARS, "MaximumAvatarWidth", + TP_IFACE_PROTOCOL_INTERFACE_AVATARS, "MaximumAvatarBytes", + NULL); + } + + /* FIXME: we should add Presence properties as well */ return table; } |