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-03-18 04:40:34 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2012-03-18 04:40:34 (GMT)
commit64c89235f1a8b23d110739409c163a3576ea8315 (patch)
tree705f0dcda7e38f8afa02458d3c6af5508671088b /editmap.py
parent95880ba1eb3de2058d223963d8a0105aef08e667 (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.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/editmap.py b/editmap.py
index e873b97..549f709 100644
--- a/editmap.py
+++ b/editmap.py
@@ -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)