Skip to content
Snippets Groups Projects
Commit dfe1d783 authored by nkour's avatar nkour
Browse files

add icons for more events

parent d9def4d2
No related branches found
No related tags found
No related merge requests found
data/pixmaps/events/chat_msg_recv.png

1.34 KiB

data/pixmaps/events/priv_msg_recv.png

1.97 KiB

data/pixmaps/events/single_msg_recv.png

1.9 KiB

......@@ -124,16 +124,20 @@ def __init__(self, event_type, jid, account, msg_type = '', file_props = None):
ntype = 'presence.offline'
elif event_type in (_('New Message'), _('New Single Message'),
_('New Private Message')):
img = 'chat.png' # FIXME: better img and split events
ntype = 'im.received'
if event_type == _('New Private Message'):
room_jid, nick = gajim.get_room_and_nick_from_fjid(jid)
room_name,t = gajim.get_room_name_and_server_from_room_jid(room_jid)
txt = _('%(nickname)s in room %(room_name)s has sent you a new message.')\
% {'nickname': nick, 'room_name': room_name}
img = 'priv_msg_recv.png'
else:
#we talk about a name here
txt = _('%s has sent you a new message.') % actor
if event_type == _('New Message'):
img = 'chat_msg_recv.png'
else: # New Single Message
img = 'single_msg_recv.png'
elif event_type == _('File Transfer Request'):
img = 'requested.png' # FIXME: better img
ntype = 'transfer'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment