summaryrefslogtreecommitdiff
path: root/gtk/gtktreemodel.h
diff options
context:
space:
mode:
authorJohn (J5) Palmieri <johnp@redhat.com>2010-04-27 17:12:41 -0400
committerJohn (J5) Palmieri <johnp@redhat.com>2010-05-03 12:47:38 -0400
commit33194ff5f46e39db123c8a4668d3a4b0bde48ecd (patch)
treeab4ab07186e2dcf0c90fff68f64c5ee210a5cca9 /gtk/gtktreemodel.h
parent5098f34234aa29cf496611bc7d41a7dcfac63743 (diff)
downloadgtk+-33194ff5f46e39db123c8a4668d3a4b0bde48ecd.tar.gz
add a get_indices_with_depth method to GtkTreePath with proper GI array annotations
* get_indices does not return a length so we can not annotate it to return an array in bindings that use GObject Introspection * this method is the same as get_indices except it takes an int * as the depth parameter which we can then use in the array annotation * in C this function returns an integer pointer array and updates depth to the number of integers in the array * in a GI binding this returns the native array type for the bound language (e.g. in PyGI this returns a list of integers)
Diffstat (limited to 'gtk/gtktreemodel.h')
-rw-r--r--gtk/gtktreemodel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtktreemodel.h b/gtk/gtktreemodel.h
index b48e87b642..ba0fe4ef3e 100644
--- a/gtk/gtktreemodel.h
+++ b/gtk/gtktreemodel.h
@@ -134,6 +134,10 @@ void gtk_tree_path_prepend_index (GtkTreePath *path,
gint index_);
gint gtk_tree_path_get_depth (GtkTreePath *path);
gint *gtk_tree_path_get_indices (GtkTreePath *path);
+
+gint *gtk_tree_path_get_indices_with_depth (GtkTreePath *path,
+ gint *depth);
+
void gtk_tree_path_free (GtkTreePath *path);
GtkTreePath *gtk_tree_path_copy (const GtkTreePath *path);
GType gtk_tree_path_get_type (void) G_GNUC_CONST;