# HG changeset patch # User Sadrul Habib Chowdhury # Date 1155995087 0 # Node ID 7d708210e31757e0f27082a2879f9dd9bdbbe251 # Parent fff6be71e0bdb00af59df66ccbfc0df911e698d4 [gaim-migrate @ 16883] g_hash_table_remove_all is introduced in glib-2.12 committer: Tailor Script diff -r fff6be71e0bd -r 7d708210e317 console/libgnt/gnttree.c --- a/console/libgnt/gnttree.c Sat Aug 19 08:15:19 2006 +0000 +++ b/console/libgnt/gnttree.c Sat Aug 19 13:44:47 2006 +0000 @@ -889,10 +889,16 @@ } } +static gboolean +return_true(gpointer key, gpointer data, gpointer null) +{ + return TRUE; +} + void gnt_tree_remove_all(GntTree *tree) { tree->root = NULL; - g_hash_table_remove_all(tree->hash); + g_hash_table_foreach_remove(tree->hash, (GHRFunc)return_true, NULL); g_list_free(tree->list); tree->list = NULL; tree->current = tree->top = tree->bottom = NULL;