Method

GntTreeadd_choice

Declaration [src]

GntTreeRow*
gnt_tree_add_choice (
  GntTree* tree,
  void* key,
  GntTreeRow* row,
  void* parent,
  void* bigbro
)

Description [src]

Add a checkable item in the tree.

See gnt_tree_create_row(), gnt_tree_create_row_from_list(), gnt_tree_add_row_last(), gnt_tree_add_row_after().

Parameters

key

Type: void*

The key for the row.

The argument can be NULL.
The data is owned by the caller of the function.
row

Type: GntTreeRow

The row to add.

The data is owned by the caller of the function.
parent

Type: void*

The parent of the row, or NULL.

The argument can be NULL.
The data is owned by the caller of the function.
bigbro

Type: void*

The row to insert after, or NULL.

The argument can be NULL.
The data is owned by the caller of the function.

Return value

Type: GntTreeRow

The row inserted.

The caller of the method takes ownership of the data, and is responsible for freeing it.