aboutsummaryrefslogtreecommitdiff
path: root/src/lib/glade.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/glade.c')
-rw-r--r--src/lib/glade.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/glade.c b/src/lib/glade.c
index 180a808b..f15dfca6 100644
--- a/src/lib/glade.c
+++ b/src/lib/glade.c
@@ -127,5 +127,22 @@ GNUNET_GTK_get_new_builder (const char *filename,
127} 127}
128 128
129 129
130/**
131 * Remove the given entry and all of its children from the tree store.
132 *
133 * @param ts tree store to change
134 * @param root root of the subtree to remove
135 */
136void
137GNUNET_FS_GTK_remove_treestore_subtree (GtkTreeStore * ts,
138 GtkTreeIter * root)
139{
140 GtkTreeIter child;
141
142 while (gtk_tree_model_iter_children (GTK_TREE_MODEL (ts), &child, root))
143 GNUNET_FS_GTK_remove_treestore_subtree (ts, &child);
144 gtk_tree_store_remove (ts, root);
145}
146
130 147
131/* end of glade.c */ 148/* end of glade.c */