/* Returns: the value corresponding to the found key, or NULL if the key was not found  */
gpointer g_tree_search(GTree *tree, GCompareFunc search_func, gconstpointer user_data)
/* Returns: the value corresponding to the found key, or NULL if the key was not found  */
gpointer g_tree_search(GTree *tree, GCompareFunc search_func, gconstpointer user_data)
{
  g_return_val_if_fail (tree != NULL, NULL);
  if (tree->root)
    return g_tree_node_search (tree->root, search_func, user_data);
  else
    return NULL;
}