summaryrefslogtreecommitdiff
path: root/gtk/tests
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/tests
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/tests')
-rw-r--r--gtk/tests/filtermodel.c6
-rw-r--r--gtk/tests/liststore.c2
-rw-r--r--gtk/tests/treestore.c2
-rw-r--r--gtk/tests/treeview-scrolling.c4
4 files changed, 7 insertions, 7 deletions
diff --git a/gtk/tests/filtermodel.c b/gtk/tests/filtermodel.c
index f541030e64..22253e0144 100644
--- a/gtk/tests/filtermodel.c
+++ b/gtk/tests/filtermodel.c
@@ -455,7 +455,7 @@ strip_virtual_root (GtkTreePath *path,
for (j = 0; j < depth - root_depth; j++)
gtk_tree_path_append_index (real_path,
- gtk_tree_path_get_indices (path, NULL)[root_depth + j]);
+ gtk_tree_path_get_indices (path)[root_depth + j]);
}
else
real_path = gtk_tree_path_copy (path);
@@ -826,7 +826,7 @@ insert_path_with_visibility (FilterTest *fixture,
GtkTreeIter parent, iter;
path = gtk_tree_path_new_from_string (path_string);
- position = gtk_tree_path_get_indices (path, NULL)[gtk_tree_path_get_depth (path)];
+ position = gtk_tree_path_get_indices (path)[gtk_tree_path_get_depth (path)];
gtk_tree_path_up (path);
if (gtk_tree_model_get_iter (GTK_TREE_MODEL (fixture->store), &parent, path))
@@ -1822,7 +1822,7 @@ specific_path_dependent_filter_func (GtkTreeModel *model,
GtkTreePath *path;
path = gtk_tree_model_get_path (model, iter);
- if (gtk_tree_path_get_indices (path, NULL)[0] < 4)
+ if (gtk_tree_path_get_indices (path)[0] < 4)
return FALSE;
return TRUE;
diff --git a/gtk/tests/liststore.c b/gtk/tests/liststore.c
index 724e2b8b77..6452fc2903 100644
--- a/gtk/tests/liststore.c
+++ b/gtk/tests/liststore.c
@@ -54,7 +54,7 @@ iter_position (GtkListStore *store,
if (!path)
return FALSE;
- if (gtk_tree_path_get_indices (path, NULL)[0] != n)
+ if (gtk_tree_path_get_indices (path)[0] != n)
ret = FALSE;
gtk_tree_path_free (path);
diff --git a/gtk/tests/treestore.c b/gtk/tests/treestore.c
index be05b607dc..c9dbcffba8 100644
--- a/gtk/tests/treestore.c
+++ b/gtk/tests/treestore.c
@@ -57,7 +57,7 @@ iter_position (GtkTreeStore *store,
if (!path)
return FALSE;
- if (gtk_tree_path_get_indices (path, NULL)[0] != n)
+ if (gtk_tree_path_get_indices (path)[0] != n)
ret = FALSE;
gtk_tree_path_free (path);
diff --git a/gtk/tests/treeview-scrolling.c b/gtk/tests/treeview-scrolling.c
index 7ba814b0be..81dfd8d752 100644
--- a/gtk/tests/treeview-scrolling.c
+++ b/gtk/tests/treeview-scrolling.c
@@ -256,7 +256,7 @@ get_pos_from_path (GtkTreeView *tree_view,
int row_start;
row_start = get_row_start_for_index (tree_view,
- gtk_tree_path_get_indices (path, NULL)[0]);
+ gtk_tree_path_get_indices (path)[0]);
if (row_start + row_height < vadj->page_size)
return POS_TOP;
@@ -406,7 +406,7 @@ test_position (GtkTreeView *tree_view,
path, NULL, &rect);
row_start = get_row_start_for_index (GTK_TREE_VIEW (tree_view),
- gtk_tree_path_get_indices (path, NULL)[0]);
+ gtk_tree_path_get_indices (path)[0]);
/* Ugh */
pos = get_pos_from_path (GTK_TREE_VIEW (tree_view),