Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2007-04-10 20:45:36 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2007-04-10 20:45:36 (GMT)
commit8c391386d79ac11be88281005862d646c2bbf728 (patch)
tree9467410fabdef78c0967f03d1971ff9ffabdbd24 /shell
parent6710618a43633d3671044336242538a96dde86d0 (diff)
Fix the buddy picture
Diffstat (limited to 'shell')
-rw-r--r--shell/view/BuddyMenu.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/shell/view/BuddyMenu.py b/shell/view/BuddyMenu.py
index d487422..10b198d 100644
--- a/shell/view/BuddyMenu.py
+++ b/shell/view/BuddyMenu.py
@@ -38,17 +38,14 @@ class BuddyMenu(Menu):
self.props.padding = units.points_to_pixels(5)
pixbuf = self._get_buddy_icon_pixbuf()
if pixbuf:
- icon_item = hippo.CanvasImage()
scaled_pixbuf = pixbuf.scale_simple(units.grid_to_pixels(1),
units.grid_to_pixels(1),
gtk.gdk.INTERP_BILINEAR)
del pixbuf
+ image = hippo.cairo_surface_from_gdk_pixbuf(scaled_pixbuf)
+ icon_item = hippo.CanvasImage(image=image)
self.add_separator()
self.append(icon_item)
- # FIXME: have to set the image _after_ adding the HippoCanvasImage
- # to it's parent item, because that sets the HippoCanvasImage's context,
- # which resets the object's 'image' property. Grr.
- #_sugar.hippo_canvas_image_set_image_from_gdk_pixbuf(icon_item, scaled_pixbuf)
self._buddy.connect('icon-changed', self.__buddy_icon_changed_cb)