From b71d15494d3837d3dd1b270eed65ca1f0fbb26c0 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Mon, 21 Jan 2008 17:01:35 +0200 Subject: [PATCH] Use a variable for the icon base path. Change path to the new one. --- src/poi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/poi.c b/src/poi.c index f87d776..90671d1 100644 --- a/src/poi.c +++ b/src/poi.c @@ -32,6 +32,7 @@ static sqlite3 *poidb; /* 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; @@ -871,8 +872,8 @@ if (icon==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) -- 2.39.5