diff options
author | Kristian Rietveld <kris@gtk.org> | 2002-06-05 21:25:52 +0000 |
---|---|---|
committer | Kristian Rietveld <kristian@src.gnome.org> | 2002-06-05 21:25:52 +0000 |
commit | 1df47f17c9879cac7b5ecc3f789cb365854bbedb (patch) | |
tree | 74c767c283e977c44219faab7d2e517b4af3ffbc /gtk/gtktreeselection.h | |
parent | 9f224d08e9d82aa0a9c0d7941ebda312ad325ac9 (diff) | |
download | gtk+-1df47f17c9879cac7b5ecc3f789cb365854bbedb.tar.gz |
Related bugs: #76252, #76396, #80866.
Wed Jun 5 23:29:41 2002 Kristian Rietveld <kris@gtk.org>
Related bugs: #76252, #76396, #80866.
* gtk/gtktreeselection.[ch]: added
gtk_tree_selection_get_selected_rows(),
added gtk_tree_selection_count_selected_rows(),
renamed gtk_tree_selection_real_select_range() to
gtk_tree_selection_real_modify_range(), and added mode parameter,
added gtk_tree_selection_unselect_range().
Diffstat (limited to 'gtk/gtktreeselection.h')
-rw-r--r-- | gtk/gtktreeselection.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gtk/gtktreeselection.h b/gtk/gtktreeselection.h index c138c49194..be83cdbfc1 100644 --- a/gtk/gtktreeselection.h +++ b/gtk/gtktreeselection.h @@ -83,13 +83,14 @@ void gtk_tree_selection_set_select_function (GtkTreeSelection gpointer gtk_tree_selection_get_user_data (GtkTreeSelection *selection); GtkTreeView* gtk_tree_selection_get_tree_view (GtkTreeSelection *selection); -/* Only meaningful if GTK_TREE_SELECTION_SINGLE is set */ -/* Use selected_foreach for GTK_TREE_SELECTION_MULTI */ +/* Only meaningful if GTK_SELECTION_SINGLE or GTK_SELECTION_BROWSE is set */ +/* Use selected_foreach or get_selected_rows for GTK_SELECTION_MULTIPLE */ gboolean gtk_tree_selection_get_selected (GtkTreeSelection *selection, GtkTreeModel **model, GtkTreeIter *iter); - -/* FIXME: Get a more convenient get_selection function???? one returning GSList?? */ +GList * gtk_tree_selection_get_selected_rows (GtkTreeSelection *selection, + GtkTreeModel **model); +gint gtk_tree_selection_count_selected_rows (GtkTreeSelection *selection); void gtk_tree_selection_selected_foreach (GtkTreeSelection *selection, GtkTreeSelectionForeachFunc func, gpointer data); @@ -110,6 +111,9 @@ void gtk_tree_selection_unselect_all (GtkTreeSelection void gtk_tree_selection_select_range (GtkTreeSelection *selection, GtkTreePath *start_path, GtkTreePath *end_path); +void gtk_tree_selection_unselect_range (GtkTreeSelection *selection, + GtkTreePath *start_path, + GtkTreePath *end_path); #ifdef __cplusplus |