From: <sa...@us...> - 2006-08-19 13:45:01
|
Revision: 16883 Author: sadrul Date: 2006-08-19 06:44:47 -0700 (Sat, 19 Aug 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16883&view=rev Log Message: ----------- g_hash_table_remove_all is introduced in glib-2.12 Modified Paths: -------------- trunk/console/libgnt/gnttree.c Modified: trunk/console/libgnt/gnttree.c =================================================================== --- trunk/console/libgnt/gnttree.c 2006-08-19 11:46:33 UTC (rev 16882) +++ trunk/console/libgnt/gnttree.c 2006-08-19 13:44:47 UTC (rev 16883) @@ -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; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |