Method

GLibNodeis_ancestor

Declaration

gboolean
g_node_is_ancestor (
  GNode* node,
  GNode* descendant
)

Description

Returns TRUE if node is an ancestor of descendant. This is true if node is the parent of descendant, or if node is the grandparent of descendant etc.

Parameters

descendant GNode
 

A GNode.

 The data is owned by the caller of the function.

Return value

Returns: gboolean
 

TRUE if node is an ancestor of descendant.