wax size for avatar in tooltip: 125x125 by default

This commit is contained in:
Yann Leboulanger 2006-02-06 13:42:23 +00:00
parent d6fee1ea49
commit 693270cf5b
2 changed files with 5 additions and 0 deletions

View File

@ -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],

View File

@ -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)