~maximpetrov/unity/unity-systray

« back to all changes in this revision

Viewing changes to launcher/LauncherModel.cpp

  • Committer: Maxim Petrov
  • Date: 2016-04-21 08:49:17 UTC
  • mfrom: (3954.52.78 unity)
  • Revision ID: maximpetrov@yahoo.com-20160421084917-462k9s5ft43d5jtv
merged with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
  .add("selection", selection_);
44
44
}
45
45
 
46
 
unity::debug::Introspectable::IntrospectableList LauncherModel::GetIntrospectableChildren()
 
46
debug::Introspectable::IntrospectableList LauncherModel::GetIntrospectableChildren()
47
47
{
48
48
  int order = 0;
49
 
  introspection_results_.clear();
 
49
  std::list<unity::debug::Introspectable*> children;
50
50
 
51
 
  for (auto icon : _inner)
 
51
  for (auto const& icon : _inner)
 
52
  {
52
53
    if (!icon->removed)
53
54
    {
54
55
      icon->SetOrder(++order);
55
 
      introspection_results_.push_back(icon.GetPointer());
 
56
      children.push_back(icon.GetPointer());
56
57
    }
 
58
  }
57
59
 
58
 
  return introspection_results_;
 
60
  return children;
59
61
}
60
62
 
61
63
bool LauncherModel::IconShouldShelf(AbstractLauncherIcon::Ptr const& icon) const