wax size for avatar in tooltip: 125x125 by default
This commit is contained in:
parent
d6fee1ea49
commit
693270cf5b
|
@ -165,6 +165,8 @@ class Config:
|
|||
'chat_avatar_height': [opt_int, 52],
|
||||
'roster_avatar_width': [opt_int, 32],
|
||||
'roster_avatar_height': [opt_int, 32],
|
||||
'tooltip_avatar_width': [opt_int, 125],
|
||||
'tooltip_avatar_height': [opt_int, 125],
|
||||
'notification_position_x': [opt_int, -1],
|
||||
'notification_position_y': [opt_int, -1],
|
||||
'notification_avatar_width': [opt_int, 48],
|
||||
|
|
|
@ -464,6 +464,9 @@ class RosterTooltip(NotificationAreaTooltip):
|
|||
file = os.path.join(gajim.AVATAR_PATH, prim_contact.jid + '.' + type_)
|
||||
if os.path.exists(file):
|
||||
self.avatar_image.set_from_file(file)
|
||||
pix = self.avatar_image.get_pixbuf()
|
||||
pix = gtkgui_helpers.get_scaled_pixbuf(pix, 'tooltip')
|
||||
self.avatar_image.set_from_pixbuf(pix)
|
||||
break
|
||||
else:
|
||||
self.avatar_image.set_from_pixbuf(None)
|
||||
|
|
Loading…
Reference in New Issue