Mark g_tree_traverse() as deprecated. (#65343)

* glib/gtree.h: Mark g_tree_traverse() as deprecated. (#65343)

        * glib/gtree.c (g_tree_traverse): Explain the deprecation in
        some detail.
This commit is contained in:
Matthias Clasen
2001-11-26 19:01:08 +00:00
parent ff3ecc745d
commit e446298113
10 changed files with 64 additions and 1 deletions

View File

@@ -467,7 +467,10 @@ g_tree_foreach (GTree *tree,
* @user_data: user data to pass to the function.
*
* Calls the given function for each node in the GTree. This function is
* deprecated, use g_tree_foreach() instead.
* deprecated, since the order of a balanced tree is somewhat arbitrary.
* If you just want to visit all nodes in some order, use g_tree_foreach()
* instead. If you really need to visit nodes in a specific order, consider
* using an <link linkend="glib-N-ary-Trees">N-ary Tree</link>.
**/
void
g_tree_traverse (GTree *tree,