/* POI Icon theme. "classic" or "square". Should be made into a configuration option */
static gchar *theme="square";
+static gchar *theme_base=DATADIR "/icons/map-icons";
/* Hash table for caching POI icons */
static GHashTable *poi_icon_hash = NULL;
if (strlen(icon)==0)
return NULL;
-g_snprintf(buffer, sizeof(buffer), DATADIR "/map-icons/%s.%s/%s.png",
- theme, (big==TRUE) ? "big" : "small", icon);
+g_snprintf(buffer, sizeof(buffer), "%s/%s.%s/%s.png",
+ theme_base, theme, (big==TRUE) ? "big" : "small", icon);
pixbuf=g_hash_table_lookup(poi_icon_hash, buffer);
if (pixbuf)