summaryrefslogtreecommitdiff
path: root/gtk/gtkliststore.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-06-14 16:46:13 -0400
committerColin Walters <walters@verbum.org>2010-06-28 13:50:36 -0400
commiteebb16eb1af11c5327dd06b23df82f7528566739 (patch)
treed29da122bb54ecc166d67e62e14d52784dc5d818 /gtk/gtkliststore.c
parent289f3b1b2b20f38fdd88d85f0dd2850b2ccbae7f (diff)
downloadgtk+-eebb16eb1af11c5327dd06b23df82f7528566739.tar.gz
Add length to gtk_tree_path_get_indices
The old version wasn't introspectable as it didn't have a length return parameter. Also, delete gtk_tree_path_get_indices_with_depth, since it's no longer needed.
Diffstat (limited to 'gtk/gtkliststore.c')
-rw-r--r--gtk/gtkliststore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkliststore.c b/gtk/gtkliststore.c
index d9cd3fd242..c913ff6d02 100644
--- a/gtk/gtkliststore.c
+++ b/gtk/gtkliststore.c
@@ -435,7 +435,7 @@ gtk_list_store_get_iter (GtkTreeModel *tree_model,
seq = list_store->seq;
- i = gtk_tree_path_get_indices (path)[0];
+ i = gtk_tree_path_get_indices (path, NULL)[0];
if (i >= g_sequence_get_length (seq))
return FALSE;
@@ -1388,7 +1388,7 @@ gtk_list_store_row_drop_possible (GtkTreeDragDest *drag_dest,
/* can drop before any existing node, or before one past any existing. */
- indices = gtk_tree_path_get_indices (dest_path);
+ indices = gtk_tree_path_get_indices (dest_path, NULL);
if (indices[0] <= g_sequence_get_length (GTK_LIST_STORE (drag_dest)->seq))
retval = TRUE;