aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-fs-gtk_common.h
diff options
context:
space:
mode:
authorLRN <lrn1986@gmail.com>2012-11-13 06:01:07 +0000
committerLRN <lrn1986@gmail.com>2012-11-13 06:01:07 +0000
commit40d75854135331d537f01a18f146a5796fb841aa (patch)
tree3f406f4f2ceb36416dec536bdfbcdc4fe29be323 /src/fs/gnunet-fs-gtk_common.h
parent61fb78563fe73d9c47ca15b6bdb5be7bfa60cbc0 (diff)
downloadgnunet-gtk-40d75854135331d537f01a18f146a5796fb841aa.tar.gz
gnunet-gtk-40d75854135331d537f01a18f146a5796fb841aa.zip
Select next item in the list after starting the download
Diffstat (limited to 'src/fs/gnunet-fs-gtk_common.h')
-rw-r--r--src/fs/gnunet-fs-gtk_common.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/fs/gnunet-fs-gtk_common.h b/src/fs/gnunet-fs-gtk_common.h
index 1bf4c258..0a13e59d 100644
--- a/src/fs/gnunet-fs-gtk_common.h
+++ b/src/fs/gnunet-fs-gtk_common.h
@@ -194,5 +194,26 @@ GNUNET_GTK_get_iter_from_reference (GtkTreeRowReference *rr, GtkTreeIter *iter);
194GtkTreeRowReference * 194GtkTreeRowReference *
195GNUNET_GTK_get_reference_from_iter (GtkTreeModel *model, GtkTreeIter *iter); 195GNUNET_GTK_get_reference_from_iter (GtkTreeModel *model, GtkTreeIter *iter);
196 196
197/**
198 * Fills "next_iter" with iterator for an item that comes next in the tree
199 * after "iter".
200 * Next item is, in order of precedence:
201 * 1) First child of "iter", if "iter" has children and "allow_children"
202 * is enabled.
203 * 2) Next sibling of "iter", unless "iter" is the last sibling.
204 * If none of those are present, function recursively checks parents of
205 * "iter" until it finds next item or runs out of parents.
206 *
207 * @param model a model to reference
208 * @param iter an iter that points to current row in the model
209 * @param allow_children whether child of "iter" is considered to be next.
210 * @param next_iter will be filled with the next row in the model on success
211 * @return TRUE if next_iter is set to a valid iter,
212 * FALSE if ran out of parents
213 */
214gboolean
215GNUNET_GTK_tree_model_get_next_flat_iter (GtkTreeModel *model,
216 GtkTreeIter *iter, gboolean allow_children, GtkTreeIter *next_iter);
217
197#endif 218#endif
198/* end of gnunet-fs-gtk-common.h */ 219/* end of gnunet-fs-gtk-common.h */