From 45c5a550d05a10241333a55fe89c061791624042 Mon Sep 17 00:00:00 2001 From: Andrea Azzarone Date: Tue, 26 Feb 2013 17:27:23 +0100 Subject: Fix regression. (bzr r3169.2.2) --- launcher/SwitcherController.cpp | 10 ++++++++++ launcher/SwitcherController.h | 1 + launcher/SwitcherControllerImpl.h | 1 + 3 files changed, 12 insertions(+) (limited to 'launcher') diff --git a/launcher/SwitcherController.cpp b/launcher/SwitcherController.cpp index 150a12a73..28bbc0c4f 100644 --- a/launcher/SwitcherController.cpp +++ b/launcher/SwitcherController.cpp @@ -139,6 +139,11 @@ SwitcherView::Ptr Controller::GetView() const return impl_->GetView(); } +bool Controller::IsDetailViewShown() +{ + return impl_->IsDetailViewShown(); +} + void Controller::SetDetail(bool value, unsigned int min_windows) { impl_->SetDetail(value, min_windows); @@ -522,6 +527,11 @@ SwitcherView::Ptr Controller::Impl::GetView() const return view_; } +bool Controller::Impl::IsDetailViewShown() +{ + return model_ && model_->detail_selection(); +} + void Controller::Impl::SetDetail(bool value, unsigned int min_windows) { if (value && model_->DetailXids().size() >= min_windows) diff --git a/launcher/SwitcherController.h b/launcher/SwitcherController.h index 29c5b7e7c..f291b7182 100644 --- a/launcher/SwitcherController.h +++ b/launcher/SwitcherController.h @@ -98,6 +98,7 @@ public: void Select(int index); + bool IsDetailViewShown(); void SetDetail(bool detail, unsigned int min_windows = 1); diff --git a/launcher/SwitcherControllerImpl.h b/launcher/SwitcherControllerImpl.h index 5734f1b05..9a877e5d0 100644 --- a/launcher/SwitcherControllerImpl.h +++ b/launcher/SwitcherControllerImpl.h @@ -56,6 +56,7 @@ struct Controller::Impl void NextDetail(); void PrevDetail(); + bool IsDetailViewShown(); void SetDetail(bool detail, unsigned int min_windows = 1); void SelectFirstItem(); -- cgit v1.2.3