[gnome-builder/gnome-builder-3-18] tree: make set_filter() introspectable
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-18] tree: make set_filter() introspectable
- Date: Tue, 13 Oct 2015 07:30:03 +0000 (UTC)
commit e10c3225ff5c7d42f5c7f5a64d33eb1e5391083b
Author: Christian Hergert <christian hergert me>
Date: Tue Sep 29 19:16:39 2015 -0700
tree: make set_filter() introspectable
src/tree/gb-tree.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/tree/gb-tree.c b/src/tree/gb-tree.c
index b5ed477..28611af 100644
--- a/src/tree/gb-tree.c
+++ b/src/tree/gb-tree.c
@@ -1633,6 +1633,15 @@ gb_tree_model_filter_visible_func (GtkTreeModel *model,
return ret;
}
+/**
+ * gb_tree_set_filter:
+ * @self: A #GbTree
+ * @filter_func: (scope notified): A callback to determien visibility.
+ * @filter_data: (closure filter_func): User data for @filter_func.
+ * @filter_data_destroy: (destroy filter_data): Destroy notify for @filter_data.
+ *
+ * Sets the filter function to be used to determine visability of a tree node.
+ */
void
gb_tree_set_filter (GbTree *self,
GbTreeFilterFunc filter_func,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]