Mercurial > pidgin
changeset 14208:7d708210e317
[gaim-migrate @ 16883]
g_hash_table_remove_all is introduced in glib-2.12
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 19 Aug 2006 13:44:47 +0000 |
parents | fff6be71e0bd |
children | 2925098c9b95 |
files | console/libgnt/gnttree.c |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;