diff options
| author | Andrea Azzarone <azzaronea@gmail.com> | 2013-08-01 07:01:01 +0200 |
|---|---|---|
| committer | Andrea Azzarone <azzaronea@gmail.com> | 2013-08-01 07:01:01 +0200 |
| commit | 39861ab1b9f76929274735657be7a82de592d3ec (patch) | |
| tree | b76d4640ac8d709f422c93b42cf13ad19c76638c /plugins/unityshell | |
| parent | 255d69c548ce12ecbe1f6a89e06ec2dee14ff5b3 (diff) | |
Refactor unity::panel::Controller and add tests for it.
(bzr r3444.2.1)
Diffstat (limited to 'plugins/unityshell')
| -rw-r--r-- | plugins/unityshell/src/unityshell.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/unityshell/src/unityshell.cpp b/plugins/unityshell/src/unityshell.cpp index a5b5752a3..846e8ec93 100644 --- a/plugins/unityshell/src/unityshell.cpp +++ b/plugins/unityshell/src/unityshell.cpp @@ -36,6 +36,7 @@ #include "LauncherController.h" #include "SwitcherController.h" #include "SwitcherView.h" +#include "PanelView.h" #include "PluginAdapter.h" #include "QuicklistManager.h" #include "StartupNotifyService.h" @@ -1413,15 +1414,14 @@ void UnityScreen::compizDamageNux(CompRegion const& damage) } } - std::vector<nux::View*> const& panels(panel_controller_->GetPanelViews()); - for (nux::View* view : panels) + for (auto const& panel : panel_controller_->panels()) { - nux::Geometry const& geo = view->GetAbsoluteGeometry(); + nux::Geometry const& geo = panel->GetAbsoluteGeometry(); CompRegion panel_region(geo.x, geo.y, geo.width, geo.height); if (damage.intersects(panel_region)) - view->QueueDraw(); + panel->QueueDraw(); } QuicklistManager* qm = QuicklistManager::Default(); |
