From: Kaj-Michael Lang Date: Thu, 10 Jan 2008 17:08:12 +0000 (+0200) Subject: sigh.. handle old glib X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9337f801eb68bb994af4cb98493de32d0d89fcd9;p=mapper sigh.. handle old glib --- diff --git a/src/poi.c b/src/poi.c index ffb983d..3465f86 100644 --- a/src/poi.c +++ b/src/poi.c @@ -349,7 +349,11 @@ poi_db_prepare(sqlite3 *db) void poi_icon_hash_clear(void) { +#if (GLIB_CHECK_VERSION (2, 12, 0)) g_hash_table_remove_all(poi_icon_hash); +#else +g_hash_table_foreach_remove(poi_icon_hash, gtk_true, NULL); +#endif } void