[telepathy-mission-control/master] McdConnection: fix signal connection ordering
Simon McVittie
simon.mcvittie at collabora.co.uk
Wed Apr 8 09:20:20 PDT 2009
Connect to signals before calling state-recovery methods.
---
src/mcd-connection.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/mcd-connection.c b/src/mcd-connection.c
index 10913d0..3675acd 100644
--- a/src/mcd-connection.c
+++ b/src/mcd-connection.c
@@ -387,13 +387,13 @@ _mcd_connection_setup_presence (McdConnection *connection)
{
McdConnectionPrivate *priv = connection->priv;
+ tp_cli_connection_interface_simple_presence_connect_to_presences_changed
+ (priv->tp_conn, on_presences_changed, priv, NULL,
+ (GObject *)connection, NULL);
tp_cli_dbus_properties_call_get
(priv->tp_conn, -1, TP_IFACE_CONNECTION_INTERFACE_SIMPLE_PRESENCE,
"Statuses", presence_get_statuses_cb, priv, NULL,
(GObject *)connection);
- tp_cli_connection_interface_simple_presence_connect_to_presences_changed
- (priv->tp_conn, on_presences_changed, priv, NULL,
- (GObject *)connection, NULL);
}
static void
--
1.5.6.5
More information about the telepathy-commits
mailing list