Method

GtkTreeViewget_visible_range

since: 2.8

Declaration [src]

gboolean
gtk_tree_view_get_visible_range (
  GtkTreeView* tree_view,
  GtkTreePath** start_path,
  GtkTreePath** end_path
)

Description [src]

Sets start_path and end_path to be the first and last visible path. Note that there may be invisible paths in between.

The paths should be freed with gtk_tree_path_free() after use.

Available since: 2.8

Parameters

start_path

Type: GtkTreePath

Return location for start of region, or NULL.

The argument will be set by the function.
The argument can be NULL.
The caller of the method takes ownership of the returned data, and is responsible for freeing it.
end_path

Type: GtkTreePath

Return location for end of region, or NULL.

The argument will be set by the function.
The argument can be NULL.
The caller of the method takes ownership of the returned data, and is responsible for freeing it.

Return value

Type: gboolean

TRUE, if valid paths were placed in start_path and end_path.