Method

GLibNodeinsert_before

Declaration

GNode*
g_node_insert_before (
  GNode* parent,
  GNode* sibling,
  GNode* node
)

Description

Inserts a GNode beneath the parent before the given sibling.

This method is not directly available to language bindings.

Parameters

sibling GNode
 

The sibling GNode to place node before. If sibling is NULL, the node is inserted as the last child of parent.

 The data is owned by the caller of the function.
node GNode
 

The GNode to insert.

 The data is owned by the caller of the function.

Return value

Returns: GNode
 

The inserted GNode.

 The data is owned by the instance.