diff options
author | Gary Martin <gary@garycmartin.com> | 2012-11-24 18:11:04 (GMT) |
---|---|---|
committer | Gary Martin <gary@garycmartin.com> | 2012-11-24 18:11:04 (GMT) |
commit | 575a5d91bab90fc6dee435e3c8c9b98b1e1bed24 (patch) | |
tree | e04c50644d0de41e697e9ad3be4b6da8a0fc3c84 /svgimage.py | |
parent | fa0bf8ee2d79bd7ae73410a4de8d051221a02e52 (diff) |
Initial GTK3/gi.repository/sugar3 port
This commit launches but is not yet in a very usable state due to missing toolbar icons and the canvas going partly off the bottom of the screen.
Diffstat (limited to 'svgimage.py')
-rw-r--r-- | svgimage.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svgimage.py b/svgimage.py index 5469107..62ba46c 100644 --- a/svgimage.py +++ b/svgimage.py @@ -20,7 +20,7 @@ import logging _logger = logging.getLogger('SVGImage') -import gtk +from gi.repository import Gtk import rsvg class SVGImage: @@ -40,7 +40,7 @@ class SVGImage: def render_svg(self): self._handle = rsvg.Handle(data=self._svg_data) self._pixbuf = self._handle.get_pixbuf() - self._image = gtk.Image() + self._image = Gtk.Image() self._image.set_from_pixbuf(self._pixbuf) self._image.set_alignment(0.5, 0) return self._image |