diff options
author | Gonzalo Odiard <godiard@sugarlabs.org> | 2014-04-11 01:40:06 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2014-05-14 21:21:40 (GMT) |
commit | dd749da6fdc05374ee656762f6c34d2c52ca6779 (patch) | |
tree | a49013aacb60e79f2298e4f42f2ed31ce6de6133 /mapnav.py | |
parent | 1394eb71f8e677990ca26d3be4e1fb1af708f950 (diff) |
More import fixes
Diffstat (limited to 'mapnav.py')
-rw-r--r-- | mapnav.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -6,10 +6,11 @@ # The class MapNavView draw a map from the top from gi.repository import Gtk +from gi.repository import Gdk +from gi.repository import GdkPixbuf from gi.repository import GObject -import cairo import logging -import rsvg +from gi.repository import Rsvg from sugar3.graphics import style @@ -99,7 +100,7 @@ class MapNavView(Gtk.DrawingArea): return False x, y = self.x, self.y - info_walls = self.get_information_walls(x, y, self.direction) + #info_walls = self.get_information_walls(x, y, self.direction) new_x, new_y, new_direction = self.x, self.y, self.direction if keyname == 'Up' or keyname == 'KP_Up': @@ -380,7 +381,7 @@ class MapNavView(Gtk.DrawingArea): # create a new dict to add the svg handle # can't be in the model because can't be put in the json if not 'svg_image_cache' in wall_object: - svg = rsvg.Handle(file=image_file_name) + svg = Rsvg.Handle.new_from_file(image_file_name) new_dict['svg_image_cache'] = svg else: if not 'pxb_image_cache' in wall_object: |