]> err.no Git - mapper/commitdiff
sigh.. handle old glib
authorKaj-Michael Lang <milang@onion.tal.org>
Thu, 10 Jan 2008 17:08:12 +0000 (19:08 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Thu, 10 Jan 2008 17:08:12 +0000 (19:08 +0200)
src/poi.c

index ffb983d39cacd6ee911ef25dbb1991ac6b01155a..3465f86fbc349cae1cc5cf23c1ed2c0c2f80b180 100644 (file)
--- 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