Method

Gtk.TreeModelSort.convert_child_path_to_path

Declaration [src]

GtkTreePath*
gtk_tree_model_sort_convert_child_path_to_path (
  GtkTreeModelSort* tree_model_sort,
  GtkTreePath* child_path
)

Description [src]

Converts child_path to a path relative to tree_model_sort. That is, child_path points to a path in the child model. The returned path will point to the same row in the sorted model. If child_path isn’t a valid path on the child model, then NULL is returned.

Parameters

child_path GtkTreePath
 

A GtkTreePath to convert

 Ownership is not transferred to the callee

Return value

Returns: GtkTreePath

A newly allocated GtkTreePath, or NULL

Ownership of the data is transferred to the caller
Can be NULL