Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/mapnav.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@sugarlabs.org>2014-04-11 01:40:06 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2014-05-14 21:21:40 (GMT)
commitdd749da6fdc05374ee656762f6c34d2c52ca6779 (patch)
treea49013aacb60e79f2298e4f42f2ed31ce6de6133 /mapnav.py
parent1394eb71f8e677990ca26d3be4e1fb1af708f950 (diff)
More import fixes
Diffstat (limited to 'mapnav.py')
-rw-r--r--mapnav.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/mapnav.py b/mapnav.py
index b6e178c..bf2d0a0 100644
--- a/mapnav.py
+++ b/mapnav.py
@@ -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: