1 /* 2 * Copyright (c) 2014 Red Hat, Inc. 3 * 4 * This library is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU Lesser General Public 6 * License as published by the Free Software Foundation; either 7 * version 2 of the License, or (at your option) any later version. 8 * 9 * This library is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * Lesser General Public License for more details. 13 * 14 * You should have received a copy of the GNU Lesser General Public 15 * License along with this library. If not, see <http://www.gnu.org/licenses/>. 16 */ 17 18 #include <gtk/gtk.h> 19 //#include "gtktreemodel.h" 20 21 22 typedef gboolean (*RowPredicate) (GtkTreeModel *model, 23 GtkTreeIter *iter, 24 gpointer data); 25 26 typedef struct _GtkTreeWalk GtkTreeWalk; 27 28 GtkTreeWalk * gtk_tree_walk_new (GtkTreeModel *model, 29 RowPredicate predicate, 30 gpointer data, 31 GDestroyNotify destroy); 32 33 void gtk_tree_walk_free (GtkTreeWalk *walk); 34 35 void gtk_tree_walk_reset (GtkTreeWalk *walk, 36 GtkTreeIter *iter); 37 38 gboolean gtk_tree_walk_next_match (GtkTreeWalk *walk, 39 gboolean force_move, 40 gboolean backwards, 41 GtkTreeIter *iter); 42 43 gboolean gtk_tree_walk_get_position (GtkTreeWalk *walk, 44 GtkTreeIter *iter); 45