[gnome-builder/gnome-builder-3-18] tree: clear selection before rebuilding the tree
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/gnome-builder-3-18] tree: clear selection before rebuilding the tree
- Date: Tue, 13 Oct 2015 07:29:03 +0000 (UTC)
commit b2fc66409605741a3f71edacdfc45e0a04e4b6b9
Author: Christian Hergert <christian hergert me>
Date: Tue Sep 29 12:51:10 2015 -0700
tree: clear selection before rebuilding the tree
src/tree/gb-tree.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/tree/gb-tree.c b/src/tree/gb-tree.c
index 05c6cdb..b5ed477 100644
--- a/src/tree/gb-tree.c
+++ b/src/tree/gb-tree.c
@@ -1309,6 +1309,10 @@ gb_tree_set_root (GbTree *self,
if (priv->root != root)
{
+ GtkTreeSelection *selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (self));
+
+ gtk_tree_selection_unselect_all (selection);
+
if (priv->root != NULL)
{
_gb_tree_node_set_parent (priv->root, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]