Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/linkbutton.py
diff options
context:
space:
mode:
authorSimon Schampijer <simon@schampijer.de>2012-03-22 15:56:21 (GMT)
committer Simon Schampijer <simon@schampijer.de>2012-03-22 15:56:21 (GMT)
commit55740d4edfd80a92670412113e7ffb2577d451d8 (patch)
tree80db7bd9fc290b742f37d8c2590a5bd2c31f3e1a /linkbutton.py
parente86ca1f8e6ec8f555d482667da983e0fc38e5d4c (diff)
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 <simon@schampijer.de> Acked-by: Manuel QuiƱones <manuq@laptop.org>
Diffstat (limited to 'linkbutton.py')
-rw-r--r--linkbutton.py8
1 files changed, 4 insertions, 4 deletions
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