Scale the icon to a paritcular size

This commit is contained in:
Dan Williams 2006-09-25 15:36:40 -04:00
parent 5343a4d6ef
commit ef24aa7553

View File

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