]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-chat.c
We can't use *_run_* API from dbus signal cb or method implementation. To avoid probl...
[empathy.git] / libempathy-gtk / empathy-chat.c
index 3be3302f67b90e78de4ff42a2588ccc6360b058a..0328c4ee90a4d10488e135560c95609c55f068c9 100644 (file)
@@ -1537,9 +1537,9 @@ empathy_chat_init (EmpathyChat *chat)
        priv->sent_messages_index = -1;
        priv->mc = empathy_mission_control_new ();
 
-       dbus_g_proxy_connect_signal (DBUS_G_PROXY (priv->mc), "AccountStatusChanged",
-                                    G_CALLBACK (chat_status_changed_cb),
-                                    chat, NULL);
+       empathy_connect_to_account_status_changed (priv->mc,
+                                                  G_CALLBACK (chat_status_changed_cb),
+                                                  chat, NULL);
 
        /* Block events for some time to avoid having "has come online" or
         * "joined" messages. */