diff options
author | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-01-21 17:54:46 +0000 |
---|---|---|
committer | Benjamin Dauvergne <bdauvergne@entrouvert.com> | 2010-01-21 17:54:46 +0000 |
commit | 83cc1803ec449fccf991be28102cd04f575e9fb7 (patch) | |
tree | 0e2da4bad415288f0d8c5b4f6ca69029ad632ee7 | |
parent | 3c9994f7072d6024f7b951971d91cb1a747d3231 (diff) | |
download | lasso-83cc1803ec449fccf991be28102cd04f575e9fb7.tar.gz lasso-83cc1803ec449fccf991be28102cd04f575e9fb7.tar.xz lasso-83cc1803ec449fccf991be28102cd04f575e9fb7.zip |
Fix GHashTable backward compatibility header
* lasso/ghashtable.h:
g_hash_table_remove_all_nodes is not a public function, use
g_hash_table_foreach_remove instead.
-rw-r--r-- | bindings/ghashtable.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bindings/ghashtable.h b/bindings/ghashtable.h index f8c9755d..aa136fd5 100644 --- a/bindings/ghashtable.h +++ b/bindings/ghashtable.h @@ -26,13 +26,17 @@ struct _GHashTable /* Helper functions to access JNI interface functions */ #if (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 12) +static gboolean return_true(gpointer a, gpointer b, gpointer c) +{ + return TRUE; +} + void g_hash_table_remove_all (GHashTable *hash_table) { g_return_if_fail (hash_table != NULL); - g_hash_table_remove_all_nodes (hash_table, TRUE); - g_hash_table_maybe_resize (hash_table); + g_hash_table_foreach_remove (hash_table, (GHRFunc)return_true, NULL); } #endif /* copy of private struct and g_hash_table_get_keys from GLib internals |