From: Kaj-Michael Lang Date: Thu, 25 Oct 2007 20:50:49 +0000 (+0300) Subject: Use "square" POI theme X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25d760278313fa239915ca6984e8ad83654da085;p=mapper Use "square" POI theme --- diff --git a/src/map-poi.c b/src/map-poi.c index e897ee4..42ac9e5 100644 --- a/src/map-poi.c +++ b/src/map-poi.c @@ -23,6 +23,8 @@ static PangoLayout *layout = NULL; static PangoFontDescription *fontdesc = NULL; static GdkGC *poi_gc; +static gchar *theme="square"; + gboolean map_poi_init(GtkWidget *map_widget) { @@ -59,8 +61,8 @@ GError *error = NULL; if (icon==NULL) return NULL; -g_snprintf(buffer, sizeof(buffer), DATADIR "/map-icons/classic.%s/%s.png", - (_zoom<2) ? "big" : "small", icon); +g_snprintf(buffer, sizeof(buffer), DATADIR "/map-icons/%s.%s/%s.png", + theme, (_zoom<2) ? "big" : "small", icon); pixbuf = g_hash_table_lookup(poi_icon_hash, buffer); if (pixbuf)