[gnome-builder] tree: clear selection before rebuilding the tree
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] tree: clear selection before rebuilding the tree
- Date: Tue, 29 Sep 2015 19:51:20 +0000 (UTC)
commit ec6a174a4937bcf65ffbb02fdd993f9f39b69947
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]