diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2012-03-18 04:40:34 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2012-03-18 04:40:34 (GMT) |
commit | 64c89235f1a8b23d110739409c163a3576ea8315 (patch) | |
tree | 705f0dcda7e38f8afa02458d3c6af5508671088b /editmap.py | |
parent | 95880ba1eb3de2058d223963d8a0105aef08e667 (diff) |
Show in the map the resource as image or as icon.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'editmap.py')
-rw-r--r-- | editmap.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -113,7 +113,11 @@ class EditMapWin(gtk.HBox): self._resources_store.clear() for resource in self.model.data['resources']: title = resource['title'] - image_file_name = resource['file_image'] + if resource['show_as'] is None: + image_file_name = resource['file_image'] + else: + image_file_name = resource['show_as'] + id_resource = resource['id_resource'] logging.error('Adding %s %s %s', title, image_file_name, id_resource) |