diff options
author | Ignacio RodrÃguez <ignaciorodriguez@sugarlabs.org> | 2012-10-18 12:21:45 (GMT) |
---|---|---|
committer | Ignacio RodrÃguez <ignaciorodriguez@sugarlabs.org> | 2012-10-18 12:21:45 (GMT) |
commit | 1b040b05e433d846ffa8765b09661590e66c293a (patch) | |
tree | 84d1211eef69d19d902fae7a9afa075ec4821557 /utils.py | |
parent | 0146c6fbf683a8a247720e002fec6a9bc82d8fae (diff) |
Port finish!
Diffstat (limited to 'utils.py')
-rw-r--r-- | utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -10,7 +10,7 @@ # Foundation, 51 Franklin Street, Suite 500 Boston, MA 02110-1335 USA -import gtk +from gi.repository import GdkPixbuf from StringIO import StringIO try: OLD_SUGAR_SYSTEM = False @@ -56,7 +56,7 @@ def json_dump(data): def svg_str_to_pixbuf(svg_string): ''' Load pixbuf from SVG string ''' - pl = gtk.gdk.PixbufLoader('svg') + pl = GdkPixbuf.PixbufLoader.new_with_type('svg') pl.write(svg_string) pl.close() pixbuf = pl.get_pixbuf() |