From 693270cf5b1c283a9fade6f6825c78e7d145fb43 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 6 Feb 2006 13:42:23 +0000 Subject: [PATCH] wax size for avatar in tooltip: 125x125 by default --- src/common/config.py | 2 ++ src/tooltips.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/common/config.py b/src/common/config.py index b346588aa..d35969c2e 100644 --- a/src/common/config.py +++ b/src/common/config.py @@ -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], diff --git a/src/tooltips.py b/src/tooltips.py index b98badd08..8184a4151 100644 --- a/src/tooltips.py +++ b/src/tooltips.py @@ -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)