By implementing g_hash_table_remove_all ourselves we can relax
the glib dependency (no more need about glib 2.12).
Evan's patch.
* Add realtime tracking to GPS layer.
* fix half-drawn problems for GPS layer.
+2007-10-01
+Guilhem Bonnefille <guilhem.bonnefille@gmail.com>:
+ * Relax dependencies about glib by implementing
+ g_hash_table_remove_all ourselves (Evan's patch)
+
2007-10-01
Quy Tonthat <qtonthat@gmail.com>:
* Disable half-drawn update when the center is moved. Avoid using
#include <stdlib.h>
#include <ctype.h>
+/* Relax some dependencies */
+#if ! GLIB_CHECK_VERSION(2,12,0)
+static gboolean return_true (gpointer a, gpointer b, gpointer c) { return TRUE; }
+static g_hash_table_remove_all (GHashTable *ght) { g_hash_table_foreach_remove ( ght, (GHRFunc) return_true, FALSE ); }
+#endif
+
#define GOOGLE_DIRECTIONS_STRING "(wget -O - \"http://maps.google.com/maps?q=%f,%f to %f,%f&output=js\" 2>/dev/null)"
#define VIK_TRW_LAYER_TRACK_GC 13
#define VIK_TRW_LAYER_TRACK_GC_RATES 10