[empathy] set presence to offline when account is disabled
- From: Felix Kaser <kaserf src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] set presence to offline when account is disabled
- Date: Sat, 16 Jan 2010 15:20:08 +0000 (UTC)
commit 6a1aecd8b35cee47c56326d4babc46a146a91be0
Author: Felix Kaser <f kaser gmx net>
Date: Sat Jan 16 16:15:31 2010 +0100
set presence to offline when account is disabled
else the presence is empty and no icon is shown in the infobar (#604706)
src/empathy-accounts-dialog.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 69bb110..c1f386b 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
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]