diff options
Diffstat (limited to 'sugar/graphics/icon.py')
-rw-r--r-- | sugar/graphics/icon.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sugar/graphics/icon.py b/sugar/graphics/icon.py index cee7dec..3ab65fa 100644 --- a/sugar/graphics/icon.py +++ b/sugar/graphics/icon.py @@ -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) |