diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2012-02-23 01:22:37 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2012-02-23 01:22:37 (GMT) |
commit | 10b04e611e811bfc44448805da47d75a3f0381aa (patch) | |
tree | 073ea23e3469effd2502595bdb1c1dce1c1def74 /editmap.py | |
parent | ed51169a14e590732799e9d8d0e7b6114b2b1ca1 (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.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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'] |