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@gmail.com>2012-05-01 07:50:42 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-05-01 07:50:42 (GMT)
commit86a0f2454fa3a9b255cabdcd3f7ab362746925d0 (patch)
treec9e2a7783449785eaedbf97d721eb67c7d336b34 /mapnav.py
parente3dcaa8629a399628425d5485cecf9ea26bd2cd0 (diff)
Improve synchronization between abms and mapvies
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'mapnav.py')
-rw-r--r--mapnav.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mapnav.py b/mapnav.py
index efb4aec..8fd51e7 100644
--- a/mapnav.py
+++ b/mapnav.py
@@ -93,6 +93,9 @@ class MapNavView(gtk.DrawingArea):
self.queue_draw_area(*rect)
return True
+ def clear_cache(self):
+ self.cache_info = {}
+
def __key_press_event_cb(self, widget, event):
keyname = gtk.gdk.keyval_name(event.keyval)
if keyname not in ('Up', 'KP_Up', 'Down', 'KP_Down', 'Left', 'KP_Left',