Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/editmap.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2012-02-23 01:22:37 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-02-23 01:22:37 (GMT)
commit10b04e611e811bfc44448805da47d75a3f0381aa (patch)
tree073ea23e3469effd2502595bdb1c1dce1c1def74 /editmap.py
parented51169a14e590732799e9d8d0e7b6114b2b1ca1 (diff)
Update the map editor when the resources are changed
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'editmap.py')
-rw-r--r--editmap.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/editmap.py b/editmap.py
index 68e405f..2836210 100644
--- a/editmap.py
+++ b/editmap.py
@@ -74,8 +74,9 @@ class EditMapWin(gtk.HBox):
def show_position(self, nav_view, x, y, direction, top_view):
self.top_view.show_position(x, y, direction)
- def load_resources(self):
+ def load_resources(self, origin=None):
logging.error('Loading resources')
+ self._resources_store.clear()
for resource in self.model.data['resources']:
title = resource['title']
image_file_name = resource['file_image']