diff options
Diffstat (limited to 'svg_utils.py')
-rw-r--r-- | svg_utils.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/svg_utils.py b/svg_utils.py index 2bbc67d..662b5e8 100644 --- a/svg_utils.py +++ b/svg_utils.py @@ -9,9 +9,8 @@ # You should have received a copy of the GNU General Public License # along with this library; if not, write to the Free Software # Foundation, 51 Franklin Street, Suite 500 Boston, MA 02110-1335 USA +from gi.repository import GdkPixbuf - -import gtk from math import sin, cos, pi @@ -24,7 +23,7 @@ def generate_xo_svg(scale=1.0, colors=["#C0C0C0", "#282828"]): 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() |