summaryrefslogtreecommitdiff
path: root/gtk/gtktreeselection.h
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2000-10-26 00:36:47 +0000
committerJonathan Blandford <jrb@src.gnome.org>2000-10-26 00:36:47 +0000
commitef7b510f467ca15b3a62f59a97ad5ba255cd124d (patch)
treea664a45f37ee115f4496fca523333e41e259ff31 /gtk/gtktreeselection.h
parentaaee9100270a2ed2aba3eec8017848a0ba76efb5 (diff)
downloadgdk-pixbuf-ef7b510f467ca15b3a62f59a97ad5ba255cd124d.tar.gz
Got rid of GtkTreeNode, and changed it to GtkTreeIter. Added iterators
Wed Oct 25 20:40:25 2000 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreemodel.h: Got rid of GtkTreeNode, and changed it to GtkTreeIter. Added iterators everywhere. * gtk/gtktreeviewcolumn.c: Changed to use the iterators. * gtk/gtktreeviewselection.c: Changed to use the iterators. * gtk/gtktreestore.c: Changed to use the iterators. * gtk/gtkliststore.c: Commented out the code. Will convert to iterators tomorrow. * gtk/gtkmodelsimple.c: Commented out the code. Will convert to iterators tomorrow. * gtk/treestoretest.c: Changed to use iterators. * demos/testgtk/main.c: Moved to use the new iterator system.
Diffstat (limited to 'gtk/gtktreeselection.h')
-rw-r--r--gtk/gtktreeselection.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/gtk/gtktreeselection.h b/gtk/gtktreeselection.h
index 61849016b..cafedf7dd 100644
--- a/gtk/gtktreeselection.h
+++ b/gtk/gtktreeselection.h
@@ -45,7 +45,7 @@ typedef gboolean (* GtkTreeSelectionFunc) (GtkTreeSelection *selection,
GtkTreePath *path,
gpointer data);
typedef void (* GtkTreeSelectionForeachFunc) (GtkTreeModel *model,
- GtkTreeNode node,
+ GtkTreeIter *iter,
gpointer data);
struct _GtkTreeSelection
@@ -78,7 +78,8 @@ gpointer gtk_tree_selection_get_user_data (GtkTreeSelection
/* Only meaningful if GTK_TREE_SELECTION_SINGLE is set */
/* Use selected_foreach for GTK_TREE_SELECTION_MULTI */
-GtkTreeNode gtk_tree_selection_get_selected (GtkTreeSelection *selection);
+gboolean gtk_tree_selection_get_selected (GtkTreeSelection *selection,
+ GtkTreeIter *iter);
/* FIXME: Get a more convenient get_selection function???? one returning GSList?? */
void gtk_tree_selection_selected_foreach (GtkTreeSelection *selection,
@@ -88,10 +89,10 @@ void gtk_tree_selection_select_path (GtkTreeSelection
GtkTreePath *path);
void gtk_tree_selection_unselect_path (GtkTreeSelection *selection,
GtkTreePath *path);
-void gtk_tree_selection_select_node (GtkTreeSelection *selection,
- GtkTreeNode tree_node);
-void gtk_tree_selection_unselect_node (GtkTreeSelection *selection,
- GtkTreeNode tree_node);
+void gtk_tree_selection_select_iter (GtkTreeSelection *selection,
+ GtkTreeIter *iter);
+void gtk_tree_selection_unselect_iter (GtkTreeSelection *selection,
+ GtkTreeIter *iter);
void gtk_tree_selection_select_all (GtkTreeSelection *selection);
void gtk_tree_selection_unselect_all (GtkTreeSelection *selection);
void gtk_tree_selection_select_range (GtkTreeSelection *selection,