aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Kaser <f.kaser@gmx.net>2009-12-28 20:53:29 +0800
committerFelix Kaser <f.kaser@gmx.net>2010-01-11 22:03:26 +0800
commit32f691f2a35bce50b8167b7de32ba357f3e40343 (patch)
tree3e5bb0a0aada9637ffcfa657166f6ec7d0572e55
parentb7fd289a92a01ba588ce29b9499f220d6d6c342f (diff)
downloadgsoc2013-empathy-32f691f2a35bce50b8167b7de32ba357f3e40343.tar
gsoc2013-empathy-32f691f2a35bce50b8167b7de32ba357f3e40343.tar.gz
gsoc2013-empathy-32f691f2a35bce50b8167b7de32ba357f3e40343.tar.bz2
gsoc2013-empathy-32f691f2a35bce50b8167b7de32ba357f3e40343.tar.lz
gsoc2013-empathy-32f691f2a35bce50b8167b7de32ba357f3e40343.tar.xz
gsoc2013-empathy-32f691f2a35bce50b8167b7de32ba357f3e40343.tar.zst
gsoc2013-empathy-32f691f2a35bce50b8167b7de32ba357f3e40343.zip
connect to status-changed signal of new accounts
the main window has to listen for status-changed signals of newly created accounts to display error-infobar
-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 */