Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorDan Williams <dcbw@localhost.localdomain>2006-09-25 19:36:40 (GMT)
committer Dan Williams <dcbw@localhost.localdomain>2006-09-25 19:36:40 (GMT)
commitef24aa7553b3ecbbf17ce788d0f29993970b2730 (patch)
tree44dfc48b5d835c263fc6260b7db3911fc6ab2fc5 /shell
parent5343a4d6ef5fa3a4d2b48da40f77136238e5044e (diff)
Scale the icon to a paritcular size
Diffstat (limited to 'shell')
-rw-r--r--shell/view/BuddyMenu.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/shell/view/BuddyMenu.py b/shell/view/BuddyMenu.py
index 33e10eb..0eaa138 100644
--- a/shell/view/BuddyMenu.py
+++ b/shell/view/BuddyMenu.py
@@ -45,11 +45,10 @@ class BuddyMenu(Menu):
pixbuf = self._get_buddy_icon_pixbuf()
if pixbuf:
- pixbuf.scale_simple(_ICON_SIZE, _ICON_SIZE, gtk.gdk.INTERP_BILINEAR)
+ scaled_pixbuf = pixbuf.scale_simple(_ICON_SIZE, _ICON_SIZE, gtk.gdk.INTERP_BILINEAR)
+ del pixbuf
self._buddy_icon_item = goocanvas.Image()
- self._buddy_icon_item.set_property('pixbuf', pixbuf)
- self._buddy_icon_item.set_property('width', _ICON_SIZE)
- self._buddy_icon_item.set_property('height', _ICON_SIZE)
+ self._buddy_icon_item.set_property('pixbuf', scaled_pixbuf)
self.add_image(self._buddy_icon_item, 3, 3)
friends = shell_model.get_friends()