From ed0e0cf4f678d9e3b13570d217d7960b5ffebdac Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Fri, 11 Apr 2008 13:11:38 +0000 Subject: We can't use *_run_* API from dbus signal cb or method implementation. To avoid problems move the code to a g_idle cb. svn path=/trunk/; revision=922 --- libempathy/empathy-contact-manager.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libempathy/empathy-contact-manager.c') diff --git a/libempathy/empathy-contact-manager.c b/libempathy/empathy-contact-manager.c index 1ef3b683a..a151dbd26 100644 --- a/libempathy/empathy-contact-manager.c +++ b/libempathy/empathy-contact-manager.c @@ -225,10 +225,9 @@ empathy_contact_manager_init (EmpathyContactManager *manager) priv->mc = empathy_mission_control_new (); - dbus_g_proxy_connect_signal (DBUS_G_PROXY (priv->mc), - "AccountStatusChanged", - G_CALLBACK (contact_manager_status_changed_cb), - manager, NULL); + empathy_connect_to_account_status_changed (priv->mc, + G_CALLBACK (contact_manager_status_changed_cb), + manager, NULL); /* Get ContactList for existing connections */ accounts = mission_control_get_online_connections (priv->mc, NULL); -- cgit v1.2.3