[gnome-builder/wip/command-bar-slider] tree: clear tree store when replacing root node
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/command-bar-slider] tree: clear tree store when replacing root node
- Date: Wed, 17 Jun 2015 07:38:46 +0000 (UTC)
commit 1b434f13de06db6b96ef6bee826e2476812adc47
Author: Christian Hergert <christian hergert me>
Date: Wed Jun 17 00:04:51 2015 -0700
tree: clear tree store when replacing root node
src/tree/gb-tree.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/tree/gb-tree.c b/src/tree/gb-tree.c
index c66ceed..54ad72a 100644
--- a/src/tree/gb-tree.c
+++ b/src/tree/gb-tree.c
@@ -1275,6 +1275,7 @@ gb_tree_set_root (GbTree *self,
{
_gb_tree_node_set_parent (priv->root, NULL);
_gb_tree_node_set_tree (priv->root, NULL);
+ gtk_tree_store_clear (priv->store);
g_clear_object (&priv->root);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]