summaryrefslogtreecommitdiff
path: root/gtk/gtktreemodel.h
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2001-06-29 04:19:30 +0000
committerJonathan Blandford <jrb@src.gnome.org>2001-06-29 04:19:30 +0000
commitdb93c6131e6f5c1c362628ebecedc78ee087778f (patch)
tree7f5ca428eb2b2cc68768bf81558cea9c9da793d6 /gtk/gtktreemodel.h
parentb6f809739bafdee2bf29052584a0b8fda0c52034 (diff)
downloadgtk+-db93c6131e6f5c1c362628ebecedc78ee087778f.tar.gz
New function to walk through a model in a depth first manner, with the
Fri Jun 29 00:13:34 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodel.c (gtk_tree_model_foreach): New function to walk through a model in a depth first manner, with the option to break out.
Diffstat (limited to 'gtk/gtktreemodel.h')
-rw-r--r--gtk/gtktreemodel.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtktreemodel.h b/gtk/gtktreemodel.h
index 37555fb3c5..e4549f0f87 100644
--- a/gtk/gtktreemodel.h
+++ b/gtk/gtktreemodel.h
@@ -36,6 +36,7 @@ typedef struct _GtkTreePath GtkTreePath;
typedef struct _GtkTreeRowReference GtkTreeRowReference;
typedef struct _GtkTreeModel GtkTreeModel; /* Dummy typedef */
typedef struct _GtkTreeModelIface GtkTreeModelIface;
+typedef gboolean (* GtkTreeModelForeachFunc) (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data);
typedef enum
@@ -215,6 +216,11 @@ void gtk_tree_model_get_valist (GtkTreeModel *tree_model,
va_list var_args);
+void gtk_tree_model_foreach (GtkTreeModel *model,
+ GtkTreeModelForeachFunc func,
+ gpointer user_data);
+
+
/* Signals */
void gtk_tree_model_range_changed (GtkTreeModel *tree_model,
GtkTreePath *start_path,