Fix getting pixbuf size, patch by jennjacobsen

This commit is contained in:
Marco Pesenti Gritti
2007-08-27 00:43:56 +02:00
parent 8ff7bdebb7
commit 60c5e564cc
2 changed files with 4 additions and 8 deletions
+2 -2
View File
@@ -246,8 +246,8 @@ class _IconBuffer(object):
icon_height = int(dimensions[1])
else:
pixbuf = gtk.gdk.pixbuf_new_from_file(file_name)
icon_width = surface.get_width()
icon_height = surface.get_height()
icon_width = pixbuf.get_width()
icon_height = pixbuf.get_height()
badge_info = self._get_badge_info(icon_info, icon_width, icon_height)