From 55740d4edfd80a92670412113e7ffb2577d451d8 Mon Sep 17 00:00:00 2001 From: Simon Schampijer Date: Thu, 22 Mar 2012 15:56:21 +0000 Subject: Use the new dynamic bindings of librsvg in Browse The sugar-toolkit-gtk3 has been ported to it, so we need to do the same in Browse. Signed-off-by: Simon Schampijer Acked-by: Manuel QuiƱones --- (limited to 'linkbutton.py') diff --git a/linkbutton.py b/linkbutton.py index a6248bf..2804397 100644 --- a/linkbutton.py +++ b/linkbutton.py @@ -16,15 +16,15 @@ # Boston, MA 02111-1307, USA. from gi.repository import Gtk +from gi.repository import Gdk from gi.repository import GdkPixbuf +from gi.repository import GObject +from gi.repository import Rsvg import os -from gi.repository import GObject -from gi.repository import Gdk import StringIO import cairo from gettext import gettext as _ -import rsvg import re import gc @@ -92,7 +92,7 @@ class LinkButton(TrayButton, GObject.GObject): link_scale_w = link_width * 1.0 / 120 link_scale_h = link_height * 1.0 / 110 link_context.scale(link_scale_w, link_scale_h) - handler = rsvg.Handle(data=data) + handler = Rsvg.Handle.new_from_data(data) handler.render_cairo(link_context) return link_surface -- cgit v0.9.1