summaryrefslogtreecommitdiff
path: root/gtk/gtktreemodel.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-06-28 14:15:10 -0400
committerColin Walters <walters@verbum.org>2010-06-28 14:15:10 -0400
commit905f98816674bf3098d519778d73b0bf1acdf286 (patch)
tree1c438a82f0fc629d8edcf948198c323e0b08d7e2 /gtk/gtktreemodel.c
parent17f8b5e581b3f2eca4e58c616bfbf2b3d6639974 (diff)
downloadgtk+-905f98816674bf3098d519778d73b0bf1acdf286.tar.gz
Revert "Add length to gtk_tree_path_get_indices"
This reverts commit eebb16eb1af11c5327dd06b23df82f7528566739. Was an accidental commit.
Diffstat (limited to 'gtk/gtktreemodel.c')
-rw-r--r--gtk/gtktreemodel.c25
1 files changed, 21 insertions, 4 deletions
diff --git a/gtk/gtktreemodel.c b/gtk/gtktreemodel.c
index af162d6384..526d1688cf 100644
--- a/gtk/gtktreemodel.c
+++ b/gtk/gtktreemodel.c
@@ -608,19 +608,36 @@ gtk_tree_path_get_depth (GtkTreePath *path)
/**
* gtk_tree_path_get_indices:
* @path: A #GtkTreePath.
- * @depth: (allow-none): Number of elements returned in the integer array
+ *
+ * Returns the current indices of @path. This is an array of integers, each
+ * representing a node in a tree. This value should not be freed.
+ *
+ * Return value: The current indices, or %NULL.
+ **/
+gint *
+gtk_tree_path_get_indices (GtkTreePath *path)
+{
+ g_return_val_if_fail (path != NULL, NULL);
+
+ return path->indices;
+}
+
+/**
+ * gtk_tree_path_get_indices_with_depth:
+ * @path: A #GtkTreePath.
+ * @depth: Number of elements returned in the integer array
*
* Returns the current indices of @path.
* This is an array of integers, each representing a node in a tree.
* It also returns the number of elements in the array.
* The array should not be freed.
*
- * Return value: (transfer none) (array length=depth): The current indices, or %NULL.
+ * Return value: (array length=depth): The current indices, or %NULL.
*
* Since: 3.0
**/
gint *
-gtk_tree_path_get_indices (GtkTreePath *path, gint *depth)
+gtk_tree_path_get_indices_with_depth (GtkTreePath *path, gint *depth)
{
g_return_val_if_fail (path != NULL, NULL);
@@ -1837,7 +1854,7 @@ gtk_tree_row_ref_reordered (RowRefList *refs,
if (ref_depth > depth)
{
gint i;
- gint *indices = gtk_tree_path_get_indices (reference->path, NULL);
+ gint *indices = gtk_tree_path_get_indices (reference->path);
for (i = 0; i < length; i++)
{