[gnome-builder] symbol-tree: expand all items if we are searching



commit 0b2ec41a400cc7bc6968a466c0e3e15157f6354b
Author: Christian Hergert <chergert redhat com>
Date:   Mon Oct 12 19:50:00 2015 -0700

    symbol-tree: expand all items if we are searching
    
    We want to find the items that are visible, which should always be leaves
    of the tree (or a parent of a matching leave). Therefore, we should be
    fully expanded to make them visible.

 plugins/symbol-tree/symbol-tree.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/symbol-tree/symbol-tree.c b/plugins/symbol-tree/symbol-tree.c
index 348e853..d80c58f 100644
--- a/plugins/symbol-tree/symbol-tree.c
+++ b/plugins/symbol-tree/symbol-tree.c
@@ -323,6 +323,7 @@ symbol_tree__search_entry_changed (SymbolTree     *self,
                           filter_symbols_cb,
                           spec,
                           (GDestroyNotify)ide_pattern_spec_unref);
+      gtk_tree_view_expand_all (GTK_TREE_VIEW (self->tree));
     }
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]