diff options
Diffstat (limited to 'toolkit/pixbuf.py')
-rw-r--r-- | toolkit/pixbuf.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toolkit/pixbuf.py b/toolkit/pixbuf.py index bb01b9a..c9b9a78 100644 --- a/toolkit/pixbuf.py +++ b/toolkit/pixbuf.py @@ -18,13 +18,13 @@ import re import cStringIO -import rsvg import cairo import logging import gi from gi.repository import Gtk from gi.repository import GdkPixbuf +from gi.repository import Rsvg from sugar3.graphics import style from sugar3.graphics.xocolor import XoColor, is_valid @@ -89,7 +89,7 @@ def from_svg_at_size(filename=None, width=None, height=None, handle=None, """Scale and load SVG into pixbuf""" if not handle: - handle = rsvg.Handle(filename) + handle = Rsvg.Handle(filename) dimensions = handle.get_dimension_data() icon_width = dimensions[0] |