diff options
author | Colin Walters <walters@verbum.org> | 2010-06-14 16:46:13 -0400 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2010-06-28 13:50:36 -0400 |
commit | eebb16eb1af11c5327dd06b23df82f7528566739 (patch) | |
tree | d29da122bb54ecc166d67e62e14d52784dc5d818 /gtk/gtktreeview.c | |
parent | 289f3b1b2b20f38fdd88d85f0dd2850b2ccbae7f (diff) | |
download | gtk+-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/gtktreeview.c')
-rw-r--r-- | gtk/gtktreeview.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 22d25ab314..5f42a73526 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -7575,7 +7575,7 @@ gtk_tree_view_drag_data_received (GtkWidget *widget, time); if (gtk_tree_path_get_depth (dest_row) == 1 - && gtk_tree_path_get_indices (dest_row)[0] == 0) + && gtk_tree_path_get_indices (dest_row, NULL)[0] == 0) { /* special special case drag to "0", scroll to first item */ if (!tree_view->priv->scroll_to_path) @@ -8392,7 +8392,7 @@ gtk_tree_view_row_inserted (GtkTreeModel *model, /* Update all row-references */ gtk_tree_row_reference_inserted (G_OBJECT (data), path); depth = gtk_tree_path_get_depth (path); - indices = gtk_tree_path_get_indices (path); + indices = gtk_tree_path_get_indices (path, NULL); /* First, find the parent tree */ while (i < depth - 1) @@ -9025,7 +9025,7 @@ _gtk_tree_view_find_node (GtkTreeView *tree_view, { GtkRBNode *tmpnode = NULL; GtkRBTree *tmptree = tree_view->priv->tree; - gint *indices = gtk_tree_path_get_indices (path); + gint *indices = gtk_tree_path_get_indices (path, NULL); gint depth = gtk_tree_path_get_depth (path); gint i = 0; @@ -11989,7 +11989,7 @@ gtk_tree_view_collapse_all (GtkTreeView *tree_view) path = gtk_tree_path_new (); gtk_tree_path_down (path); - indices = gtk_tree_path_get_indices (path); + indices = gtk_tree_path_get_indices (path, NULL); tree = tree_view->priv->tree; node = tree->root; @@ -12029,7 +12029,7 @@ gtk_tree_view_expand_to_path (GtkTreeView *tree_view, g_return_if_fail (path != NULL); depth = gtk_tree_path_get_depth (path); - indices = gtk_tree_path_get_indices (path); + indices = gtk_tree_path_get_indices (path, NULL); tmp = gtk_tree_path_new (); g_return_if_fail (tmp != NULL); @@ -13484,7 +13484,7 @@ gtk_tree_view_set_drag_dest_row (GtkTreeView *tree_view, if (pos == GTK_TREE_VIEW_DROP_BEFORE && path && gtk_tree_path_get_depth (path) == 1 - && gtk_tree_path_get_indices (path)[0] == 0) + && gtk_tree_path_get_indices (path, NULL)[0] == 0) { gint n_children; |