From a3cd40ac84fc64757579c3618227ba8e6dc1e366 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Tue, 8 Nov 2005 11:13:47 +0000 Subject: [PATCH] fix a logic bug. thanks deluge --- src/systray.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/systray.py b/src/systray.py index 4fb14247a..fdb7b308f 100644 --- a/src/systray.py +++ b/src/systray.py @@ -345,7 +345,10 @@ class Systray: self.make_menu(event) def on_show_menuitem_activate(self, widget, show): - l = ['online', 'chat', 'away', 'xa', 'dnd', 'invisible', 'offline'] + # we all add some fake (we cannot select those nor have them as show) + # but this helps to align with roster's status_combobox index positions + l = ['online', 'chat', 'away', 'xa', 'dnd', 'invisible', 'SEPARATOR', + 'CHANGE_STATUS_MSG_MENUITEM', 'SEPARATOR', 'offline'] index = l.index(show) gajim.interface.roster.status_combobox.set_active(index)