aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-accounts-dialog.c
diff options
context:
space:
mode:
authorFelix Kaser <f.kaser@gmx.net>2010-01-16 23:15:31 +0800
committerFelix Kaser <f.kaser@gmx.net>2010-01-16 23:15:31 +0800
commit6a1aecd8b35cee47c56326d4babc46a146a91be0 (patch)
treea24796bba703972eebcae3bd2c0da016fddafa32 /src/empathy-accounts-dialog.c
parent605672f66eb239c2aed2de45cf737f9278374614 (diff)
downloadgsoc2013-empathy-6a1aecd8b35cee47c56326d4babc46a146a91be0.tar
gsoc2013-empathy-6a1aecd8b35cee47c56326d4babc46a146a91be0.tar.gz
gsoc2013-empathy-6a1aecd8b35cee47c56326d4babc46a146a91be0.tar.bz2
gsoc2013-empathy-6a1aecd8b35cee47c56326d4babc46a146a91be0.tar.lz
gsoc2013-empathy-6a1aecd8b35cee47c56326d4babc46a146a91be0.tar.xz
gsoc2013-empathy-6a1aecd8b35cee47c56326d4babc46a146a91be0.tar.zst
gsoc2013-empathy-6a1aecd8b35cee47c56326d4babc46a146a91be0.zip
set presence to offline when account is disabled
else the presence is empty and no icon is shown in the infobar (#604706)
Diffstat (limited to 'src/empathy-accounts-dialog.c')
-rw-r--r--src/empathy-accounts-dialog.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 69bb110be..c1f386b57 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -232,6 +232,11 @@ accounts_dialog_update_status_infobar (EmpathyAccountsDialog *dialog,
* are connected, consider ourself as Available.
* We also check Offline because of this MC5 bug: fd.o #26060 */
presence = TP_CONNECTION_PRESENCE_TYPE_AVAILABLE;
+
+ /* set presence to offline if account is disabled
+ * (else no icon is shown in infobar)*/
+ if (!account_enabled)
+ presence = TP_CONNECTION_PRESENCE_TYPE_OFFLINE;
}
else
{