diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-04-11 17:23:52 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-04-12 15:42:01 +0200 |
commit | 8f047aaaf9f0d5bdadb652cbc455d683c449ded3 (patch) | |
tree | 621c99963e9f51c05f1893bf8347bd821f2bba5c /telepathy-glib/protocol.c | |
parent | 4fee994638e36662aec5e08b13cd57253fa5c227 (diff) | |
download | telepathy-glib-8f047aaaf9f0d5bdadb652cbc455d683c449ded3.tar.gz |
TpProtocol: add supported interfaces (fdo #36134)
Diffstat (limited to 'telepathy-glib/protocol.c')
-rw-r--r-- | telepathy-glib/protocol.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/telepathy-glib/protocol.c b/telepathy-glib/protocol.c index 94b911d25..de9010043 100644 --- a/telepathy-glib/protocol.c +++ b/telepathy-glib/protocol.c @@ -436,6 +436,7 @@ tp_protocol_constructed (GObject *object) const GPtrArray *rccs; gboolean had_immutables = TRUE; const gchar * const *auth_types = NULL; + const gchar * const *interfaces; if (chain_up != NULL) chain_up (object); @@ -502,6 +503,11 @@ tp_protocol_constructed (GObject *object) self->priv->authentication_types = g_strdupv (tmp); } + interfaces = tp_asv_get_strv (self->priv->protocol_properties, + TP_PROP_PROTOCOL_INTERFACES); + + tp_proxy_add_interfaces (proxy, interfaces); + /* become ready immediately */ _tp_proxy_set_feature_prepared (proxy, TP_PROTOCOL_FEATURE_PARAMETERS, had_immutables); |