From ea47fd6f08c2e9d41c04e8707916be873e28ede7 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Tue, 16 Aug 2005 19:26:11 +0000 Subject: [PATCH] cleanup and a FIXME for dkirov --- src/common/gajim.py | 5 ++++- src/tooltips.py | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/common/gajim.py b/src/common/gajim.py index e018bd677..b50d7f5fe 100644 --- a/src/common/gajim.py +++ b/src/common/gajim.py @@ -70,7 +70,10 @@ events_for_ui = {} #... and its mutex mutex_events_for_ui = mutex.mutex() -socks5quue = None +socks5quue = None # FIXME: this var has a typo in queue but I think it is also not used! + +SHOW_LIST = ['offline', 'connecting', 'online', 'chat', 'away', 'xa', 'dnd', + 'invisible'] def get_nick_from_jid(jid): pos = jid.find('@') diff --git a/src/tooltips.py b/src/tooltips.py index c54369bf2..eba9075a4 100644 --- a/src/tooltips.py +++ b/src/tooltips.py @@ -190,8 +190,7 @@ class NotificationAreaTooltip(BaseTooltip, StatusTable): status_idx = gajim.connections[account].connected # uncomment the following to hide offline accounts # if status_idx == 0: continue - from common.connection import STATUS_LIST - status = STATUS_LIST[status_idx] + status = gajim.SHOW_LIST[status_idx] message = gajim.connections[account].status single_line = helpers.get_uf_show(status) if message is None: