add icons for more events
This commit is contained in:
parent
d9def4d2a4
commit
dfe1d78391
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
|
@ -124,16 +124,20 @@ class DesktopNotification:
|
||||||
ntype = 'presence.offline'
|
ntype = 'presence.offline'
|
||||||
elif event_type in (_('New Message'), _('New Single Message'),
|
elif event_type in (_('New Message'), _('New Single Message'),
|
||||||
_('New Private Message')):
|
_('New Private Message')):
|
||||||
img = 'chat.png' # FIXME: better img and split events
|
|
||||||
ntype = 'im.received'
|
ntype = 'im.received'
|
||||||
if event_type == _('New Private Message'):
|
if event_type == _('New Private Message'):
|
||||||
room_jid, nick = gajim.get_room_and_nick_from_fjid(jid)
|
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)
|
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.')\
|
txt = _('%(nickname)s in room %(room_name)s has sent you a new message.')\
|
||||||
% {'nickname': nick, 'room_name': room_name}
|
% {'nickname': nick, 'room_name': room_name}
|
||||||
|
img = 'priv_msg_recv.png'
|
||||||
else:
|
else:
|
||||||
#we talk about a name here
|
#we talk about a name here
|
||||||
txt = _('%s has sent you a new message.') % actor
|
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'):
|
elif event_type == _('File Transfer Request'):
|
||||||
img = 'requested.png' # FIXME: better img
|
img = 'requested.png' # FIXME: better img
|
||||||
ntype = 'transfer'
|
ntype = 'transfer'
|
||||||
|
|
Loading…
Reference in New Issue