[grenshad] add FT-related icons. thank him as artist
This commit is contained in:
parent
995590a0f1
commit
d9def4d2a4
6 changed files with 18 additions and 8 deletions
1
THANKS
1
THANKS
|
@ -3,6 +3,7 @@ Alexey Nezhdanov
|
|||
Alfredo Junix
|
||||
Andrew Sayman
|
||||
Christian Bjälevik
|
||||
Christophe Got
|
||||
Christoph Neuroth
|
||||
Denis Craven
|
||||
Dennis Craven
|
||||
|
|
BIN
data/pixmaps/events/ft_done.png
Normal file
BIN
data/pixmaps/events/ft_done.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.2 KiB |
BIN
data/pixmaps/events/ft_error.png
Normal file
BIN
data/pixmaps/events/ft_error.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
BIN
data/pixmaps/events/ft_stopped.png
Normal file
BIN
data/pixmaps/events/ft_stopped.png
Normal file
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>
|
||||
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)
|
||||
|
||||
rep = dlg.run()
|
||||
|
|
|
@ -140,10 +140,9 @@ class DesktopNotification:
|
|||
#we talk about a name here
|
||||
txt = _('%s wants to send you a file.') % actor
|
||||
elif event_type == _('File Transfer Error'):
|
||||
img = 'error.png' # FIXME: better img
|
||||
img = 'ft_stopped.png'
|
||||
ntype = 'transfer.error'
|
||||
elif event_type in (_('File Transfer Completed'), _('File Transfer Stopped')):
|
||||
img = 'closed.png' # # FIXME: better img and split events
|
||||
ntype = 'transfer.complete'
|
||||
if file_props is not None:
|
||||
if file_props['type'] == 'r':
|
||||
|
@ -155,9 +154,11 @@ class DesktopNotification:
|
|||
if event_type == _('File Transfer Completed'):
|
||||
txt = _('You successfully received %(filename)s from %(name)s.')\
|
||||
% {'filename': filename, 'name': name}
|
||||
img = 'ft_done.png'
|
||||
else: # ft stopped
|
||||
txt = _('File transfer of %(filename)s from %(name)s stopped.')\
|
||||
% {'filename': filename, 'name': name}
|
||||
img = 'ft_stopped.png'
|
||||
else:
|
||||
receiver = file_props['receiver']
|
||||
if hasattr(receiver, 'jid'):
|
||||
|
@ -170,18 +171,25 @@ class DesktopNotification:
|
|||
if event_type == _('File Transfer Completed'):
|
||||
txt = _('You successfully sent %(filename)s to %(name)s.')\
|
||||
% {'filename': filename, 'name': name}
|
||||
img = 'ft_done.png'
|
||||
else: # ft stopped
|
||||
txt = _('File transfer of %(filename)s to %(name)s stopped.')\
|
||||
% {'filename': filename, 'name': name}
|
||||
img = 'ft_stopped.png'
|
||||
else:
|
||||
txt = ''
|
||||
|
||||
iconset = gajim.config.get('iconset')
|
||||
if not iconset:
|
||||
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, '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')
|
||||
if not iconset:
|
||||
iconset = 'sun'
|
||||
path = os.path.join(gajim.DATA_DIR, 'iconsets', iconset, '16x16', img)
|
||||
path = os.path.abspath(path)
|
||||
|
||||
self.notif = dbus_support.get_notifications_interface()
|
||||
if self.notif is None:
|
||||
raise dbus.DBusException()
|
||||
|
|
Loading…
Add table
Reference in a new issue