From 7b6dd8facacb4c54c1670e63445e5fbeebd24be0 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 11 Oct 2005 14:16:01 +0000 Subject: [PATCH] new pm popup window now show "From nick in room room_name" --- src/dialogs.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/dialogs.py b/src/dialogs.py index a1c0477fe..bab68f2cd 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -807,7 +807,9 @@ class PopupNotificationWindow: close_button.modify_bg(gtk.STATE_NORMAL, dodgerblue) eventbox.modify_bg(gtk.STATE_NORMAL, dodgerblue) if event_type == _('New Private Message'): - txt = _('From %s') % jid.split('/', 1)[1] # Nickname + room_jid, nick = gajim.get_room_and_nick_from_fjid(jid) + room_name = room_jid.split('@', 1)[0] + txt = _('From %s in room %s') % (nick, room_name) else: txt = _('From %s') % txt event_description_label.set_text(txt)