summaryrefslogtreecommitdiff
path: root/unity-shared
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2014-07-09 12:53:43 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2014-07-09 12:53:43 +0200
commitf6925df5deb809c961fe82e3ca14b51a8a2ae3f5 (patch)
tree6337d871162bee617ed4268682f95bf4d961a0e0 /unity-shared
parentbde419b7cbf47e8ea991f135d4d86030fa5befff (diff)
DashView, HudView, SpreadFilter: adapt to the SearchBar changes
(bzr r3830.5.3)
Diffstat (limited to 'unity-shared')
-rw-r--r--unity-shared/SpreadFilter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/unity-shared/SpreadFilter.cpp b/unity-shared/SpreadFilter.cpp
index 031ae7e1f..da01d0d0b 100644
--- a/unity-shared/SpreadFilter.cpp
+++ b/unity-shared/SpreadFilter.cpp
@@ -38,7 +38,6 @@ const unsigned DEFAULT_SEARCH_WAIT = 300;
const RawPixel OFFSET_X = 10_em;
const RawPixel OFFSET_Y = 15_em;
const RawPixel WIDTH = 620_em;
-const RawPixel HEIGHT = 42_em;
// For some reason std::to_lower or boost::to_lower_copy doesn't seem to handle well utf8
std::string casefold_copy(std::string const& str)
@@ -58,7 +57,8 @@ Filter::Filter()
auto const& cv = settings.em(monitor);
search_bar_ = SearchBar::Ptr(new SearchBar());
- search_bar_->SetMinMaxSize(WIDTH.CP(cv), HEIGHT.CP(cv));
+ search_bar_->SetMinimumWidth(WIDTH.CP(cv));
+ search_bar_->SetMaximumWidth(WIDTH.CP(cv));
search_bar_->scale = cv->DPIScale();
search_bar_->live_search_wait = DEFAULT_SEARCH_WAIT;
text.SetGetterFunction([this] { return search_bar_->search_string(); });