summaryrefslogtreecommitdiff
path: root/gtk/gtktreeselection.h
diff options
context:
space:
mode:
authorJavier Jardón <jjardon@gnome.org>2010-10-22 22:24:36 +0200
committerJavier Jardón <jjardon@gnome.org>2010-10-23 00:31:37 +0200
commit8d3b36d534b6b60031166cbfe3aa15dfdd23e1e9 (patch)
treee799c2209495ab3e9330d3093baeda5eb206b0dc /gtk/gtktreeselection.h
parente51daa79fe2c17499bfa76e6fb25e40d04bba2d6 (diff)
downloadgtk+-8d3b36d534b6b60031166cbfe3aa15dfdd23e1e9.tar.gz
gtktreeselection: Move documentation to inline comments
Diffstat (limited to 'gtk/gtktreeselection.h')
-rw-r--r--gtk/gtktreeselection.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/gtk/gtktreeselection.h b/gtk/gtktreeselection.h
index 267a2af37e..38a1f702e3 100644
--- a/gtk/gtktreeselection.h
+++ b/gtk/gtktreeselection.h
@@ -36,11 +36,37 @@ G_BEGIN_DECLS
#define GTK_IS_TREE_SELECTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TREE_SELECTION))
#define GTK_TREE_SELECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_TREE_SELECTION, GtkTreeSelectionClass))
+/**
+ * GtkTreeSelectionFunc:
+ * @selection: A #GtkTreeSelection
+ * @model: A #GtkTreeModel being viewed
+ * @path: The #GtkTreePath of the row in question
+ * @path_currently_selected: %TRUE, if the path is currently selected
+ * @data: user data
+ *
+ * A function used by gtk_tree_selection_set_select_function() to filter
+ * whether or not a row may be selected. It is called whenever a row's
+ * state might change. A return value of %TRUE indicates to @selection
+ * that it is okay to change the selection.
+ *
+ * Returns: %TRUE, if the selection state of the row can be toggled
+ */
typedef gboolean (* GtkTreeSelectionFunc) (GtkTreeSelection *selection,
GtkTreeModel *model,
GtkTreePath *path,
gboolean path_currently_selected,
gpointer data);
+
+/**
+ * GtkTreeSelectionForeachFunc:
+ * @model: The #GtkTreeModel being viewed
+ * @path: The #GtkTreePath of a selected row
+ * @iter: A #GtkTreeIter pointing to a selected row
+ * @data: user data
+ *
+ * A function used by gtk_tree_selection_selected_foreach() to map all
+ * selected rows. It will be called on every selected row in the view.
+ */
typedef void (* GtkTreeSelectionForeachFunc) (GtkTreeModel *model,
GtkTreePath *path,
GtkTreeIter *iter,