mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 21:06:52 +03:00
Ticket #2085: replacement of deprecated GLib functions.
g_tree_traverse() is deprecated. g_tree_foreach() is used instead. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
f5ae2bfedd
commit
9dc0a54ba1
@ -134,7 +134,7 @@ mc_defines_destroy (gpointer key, gpointer value, gpointer data)
|
|||||||
static void
|
static void
|
||||||
destroy_defines (GTree ** defines)
|
destroy_defines (GTree ** defines)
|
||||||
{
|
{
|
||||||
g_tree_traverse (*defines, mc_defines_destroy, G_POST_ORDER, NULL);
|
g_tree_foreach (*defines, mc_defines_destroy, NULL);
|
||||||
g_tree_destroy (*defines);
|
g_tree_destroy (*defines);
|
||||||
*defines = NULL;
|
*defines = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user