[grenshad] add FT-related icons. thank him as artist
This commit is contained in:
parent
995590a0f1
commit
d9def4d2a4
1
THANKS
1
THANKS
|
@ -3,6 +3,7 @@ Alexey Nezhdanov
|
||||||
Alfredo Junix
|
Alfredo Junix
|
||||||
Andrew Sayman
|
Andrew Sayman
|
||||||
Christian Bjälevik
|
Christian Bjälevik
|
||||||
|
Christophe Got
|
||||||
Christoph Neuroth
|
Christoph Neuroth
|
||||||
Denis Craven
|
Denis Craven
|
||||||
Dennis Craven
|
Dennis Craven
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
|
@ -473,7 +473,8 @@ class AboutDialog:
|
||||||
#here you write your name in the form Name FamilyName <someone@somewhere>
|
#here you write your name in the form Name FamilyName <someone@somewhere>
|
||||||
dlg.set_translator_credits(_('translator-credits'))
|
dlg.set_translator_credits(_('translator-credits'))
|
||||||
|
|
||||||
artists = ['Dennis Craven', 'Membris Khan', 'Guillaume Morin']
|
artists = ['Dennis Craven', 'Membris Khan', 'Guillaume Morin',
|
||||||
|
'Christophe Got']
|
||||||
dlg.set_artists(artists)
|
dlg.set_artists(artists)
|
||||||
|
|
||||||
rep = dlg.run()
|
rep = dlg.run()
|
||||||
|
|
|
@ -140,10 +140,9 @@ class DesktopNotification:
|
||||||
#we talk about a name here
|
#we talk about a name here
|
||||||
txt = _('%s wants to send you a file.') % actor
|
txt = _('%s wants to send you a file.') % actor
|
||||||
elif event_type == _('File Transfer Error'):
|
elif event_type == _('File Transfer Error'):
|
||||||
img = 'error.png' # FIXME: better img
|
img = 'ft_stopped.png'
|
||||||
ntype = 'transfer.error'
|
ntype = 'transfer.error'
|
||||||
elif event_type in (_('File Transfer Completed'), _('File Transfer Stopped')):
|
elif event_type in (_('File Transfer Completed'), _('File Transfer Stopped')):
|
||||||
img = 'closed.png' # # FIXME: better img and split events
|
|
||||||
ntype = 'transfer.complete'
|
ntype = 'transfer.complete'
|
||||||
if file_props is not None:
|
if file_props is not None:
|
||||||
if file_props['type'] == 'r':
|
if file_props['type'] == 'r':
|
||||||
|
@ -155,9 +154,11 @@ class DesktopNotification:
|
||||||
if event_type == _('File Transfer Completed'):
|
if event_type == _('File Transfer Completed'):
|
||||||
txt = _('You successfully received %(filename)s from %(name)s.')\
|
txt = _('You successfully received %(filename)s from %(name)s.')\
|
||||||
% {'filename': filename, 'name': name}
|
% {'filename': filename, 'name': name}
|
||||||
|
img = 'ft_done.png'
|
||||||
else: # ft stopped
|
else: # ft stopped
|
||||||
txt = _('File transfer of %(filename)s from %(name)s stopped.')\
|
txt = _('File transfer of %(filename)s from %(name)s stopped.')\
|
||||||
% {'filename': filename, 'name': name}
|
% {'filename': filename, 'name': name}
|
||||||
|
img = 'ft_stopped.png'
|
||||||
else:
|
else:
|
||||||
receiver = file_props['receiver']
|
receiver = file_props['receiver']
|
||||||
if hasattr(receiver, 'jid'):
|
if hasattr(receiver, 'jid'):
|
||||||
|
@ -170,18 +171,25 @@ class DesktopNotification:
|
||||||
if event_type == _('File Transfer Completed'):
|
if event_type == _('File Transfer Completed'):
|
||||||
txt = _('You successfully sent %(filename)s to %(name)s.')\
|
txt = _('You successfully sent %(filename)s to %(name)s.')\
|
||||||
% {'filename': filename, 'name': name}
|
% {'filename': filename, 'name': name}
|
||||||
|
img = 'ft_done.png'
|
||||||
else: # ft stopped
|
else: # ft stopped
|
||||||
txt = _('File transfer of %(filename)s to %(name)s stopped.')\
|
txt = _('File transfer of %(filename)s to %(name)s stopped.')\
|
||||||
% {'filename': filename, 'name': name}
|
% {'filename': filename, 'name': name}
|
||||||
|
img = 'ft_stopped.png'
|
||||||
else:
|
else:
|
||||||
txt = ''
|
txt = ''
|
||||||
|
|
||||||
|
path = os.path.join(gajim.DATA_DIR, 'pixmaps', 'events', img)
|
||||||
|
path = os.path.abspath(path)
|
||||||
|
|
||||||
|
if not os.path.exists(path): # we may use img from iconset
|
||||||
|
iconset = gajim.config.get('iconset')
|
||||||
iconset = gajim.config.get('iconset')
|
iconset = gajim.config.get('iconset')
|
||||||
if not iconset:
|
if not iconset:
|
||||||
iconset = 'sun'
|
iconset = 'sun'
|
||||||
# FIXME: use 32x32 or 48x48 someday
|
|
||||||
path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, '16x16', img)
|
path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, '16x16', img)
|
||||||
path = os.path.abspath(path)
|
path = os.path.abspath(path)
|
||||||
|
|
||||||
self.notif = dbus_support.get_notifications_interface()
|
self.notif = dbus_support.get_notifications_interface()
|
||||||
if self.notif is None:
|
if self.notif is None:
|
||||||
raise dbus.DBusException()
|
raise dbus.DBusException()
|
||||||
|
|
Loading…
Reference in New Issue