~ubuntu-branches/ubuntu/trusty/gnome-do/trusty

« back to all changes in this revision

Viewing changes to Do/src/Do.Core/SimpleSearchController.cs

  • Committer: Package Import Robot
  • Author(s): Christopher James Halse Rogers
  • Date: 2012-03-26 11:12:21 UTC
  • mfrom: (0.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20120326111221-1jk143fy37zxi3e4
Tags: 0.9-1
* New upstream version no longer uses deprecated internal glib headers.
  (Closes: #665537)
* [59fa37b9] Fix watch file
* [63486516] Imported Upstream version 0.9
* [8c636d84] Disable testsuite for now; requires running dbus and gconf daemons
* [e46de4b9] Remove inaccurate README.Source
* [4591d677] Add git-buildpackage configuration to default to pristine-tar

Show diffs side-by-side

added added

removed removed

Lines of Context:
189
189
                public bool ItemChildSearch ()
190
190
                {
191
191
                        Item item = context.Selection;
192
 
                        List<Item> children = new List<Item> ();
193
 
 
194
 
                        foreach (ItemSource source in PluginManager.ItemSources) {
195
 
                                foreach (Item child in source.Safe.ChildrenOfItem (item).Where (i => AcceptChildItem (i)))
196
 
                                        children.Add (child);
197
 
                        }
198
 
                        
 
192
                        IEnumerable<Item> children = item.GetChildren ();
 
193
 
 
194
                        children = children.Concat (PluginManager.ItemSources
 
195
                                .SelectMany (source => source.Safe.ChildrenOfItem (item))
 
196
                                .Where (i => AcceptChildItem (i)));
 
197
                        children = children.Concat (PluginManager.DynamicItemSources
 
198
                                .SelectMany (source => source.ChildrenOfItem (item))
 
199
                                .Where (i => AcceptChildItem (i)));
 
200
 
199
201
                        if (!children.Any ())
200
202
                                return false;
201
 
                        
 
203
 
202
204
                        SimpleSearchContext newContext = new SimpleSearchContext ();
203
205
                        newContext.ParentContext = context;
204
206
                        context = newContext;