diff options
author | C. Scott Ananian <cscott@cscott.net> | 2011-11-04 01:02:15 (GMT) |
---|---|---|
committer | C. Scott Ananian <cscott@cscott.net> | 2011-11-10 03:11:43 (GMT) |
commit | a40a1f2dac83be585a07a6b1d74948f103828bf1 (patch) | |
tree | f99ee1ac8fa5a80376426c6899b440f47364025e /TurtleArt/tasprite_factory.py | |
parent | 747e75bb9124f0f133a260c35036d2df17830cf0 (diff) |
Fix PixbufLoader constructor on GIR/GTK3.
GIR has a more direct translation of the various C-level object constructors.
Use the appropriate GIR-style constructor, adding alises for correct operation
on GTK2.
Diffstat (limited to 'TurtleArt/tasprite_factory.py')
-rwxr-xr-x | TurtleArt/tasprite_factory.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/TurtleArt/tasprite_factory.py b/TurtleArt/tasprite_factory.py index 19e38ad..4153a95 100755 --- a/TurtleArt/tasprite_factory.py +++ b/TurtleArt/tasprite_factory.py @@ -1135,7 +1135,7 @@ if __name__ == "__main__": def svg_str_to_pixbuf(svg_string): """ Load pixbuf from SVG string """ - pl = GdkPixbuf.PixbufLoader('svg') + pl = GdkPixbuf.PixbufLoader.new_with_type('svg') pl.write(svg_string) pl.close() pixbuf = pl.get_pixbuf() |