aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-main-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/empathy-main-window.c')
-rw-r--r--src/empathy-main-window.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c
index da6715699..e77ab9e3e 100644
--- a/src/empathy-main-window.c
+++ b/src/empathy-main-window.c
@@ -1132,6 +1132,12 @@ main_window_account_validity_changed_cb (TpAccountManager *manager,
gboolean valid,
EmpathyMainWindow *window)
{
+ if (valid) {
+ g_signal_connect (account, "status-changed",
+ G_CALLBACK (main_window_connection_changed_cb),
+ window);
+ }
+
main_window_account_removed_cb (manager, account, window);
}
@@ -1201,6 +1207,10 @@ account_manager_prepared_cb (GObject *source_object,
window);
}
+ g_signal_connect (manager, "account-validity-changed",
+ G_CALLBACK (main_window_account_validity_changed_cb),
+ window);
+
main_window_update_status (window);
/* Disable the "Previous Conversations" menu entry if there is no account */