diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-04-11 15:06:51 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2014-04-11 15:06:51 +0100 |
commit | e62ae89937cdc7c1775de91db404031b1f79b2bd (patch) | |
tree | 52ce4657677275b9397cbe0e5138c395e7592b2f | |
parent | 070f68158f990ae913d7ee158779a5bec224b418 (diff) |
tp_base_connection_set_self_handle: consolidate GObject setters
If we set both properties in one g_object_set() call, we only get
one PropertiesChanged signal, which, arguably, we should be using
instead of making our own SelfContactChanged (although the
telepathy-spec work has not been done yet).
-rw-r--r-- | telepathy-glib/base-connection.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/telepathy-glib/base-connection.c b/telepathy-glib/base-connection.c index f7a13e952..23bd0095a 100644 --- a/telepathy-glib/base-connection.c +++ b/telepathy-glib/base-connection.c @@ -1715,10 +1715,11 @@ tp_base_connection_set_self_handle (TpBaseConnection *self, self->priv->handles[TP_ENTITY_TYPE_CONTACT], self_handle); } - _tp_gdbus_connection_set_self_handle (self->priv->connection_skeleton, - self->priv->self_handle); - _tp_gdbus_connection_set_self_id (self->priv->connection_skeleton, - self->priv->self_id); + g_object_set (self->priv->connection_skeleton, + "self-handle", (guint32) self->priv->self_handle, + "self-id", self->priv->self_id, + NULL); + _tp_gdbus_connection_emit_self_contact_changed ( self->priv->connection_skeleton, self->priv->self_handle, self->priv->self_id); |