From 358098d7eeb701b4b0981a00cf211bb1d1243f71 Mon Sep 17 00:00:00 2001 From: Nick Dedekind Date: Mon, 13 May 2013 17:03:47 +0100 Subject: use const value for entry activate wait timeout (bzr r3008.58.2) --- dash/DashView.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dash') diff --git a/dash/DashView.cpp b/dash/DashView.cpp index a651fc4a6..831a5d078 100644 --- a/dash/DashView.cpp +++ b/dash/DashView.cpp @@ -57,6 +57,8 @@ const int DASH_RESULT_RIGHT_PAD = 35; const int GROUP_HEADING_HEIGHT = 24; const int PREVIEW_ICON_SPLIT_OFFSCREEN_OFFSET = 10; + +const int MAX_ENTRY_ACTIVATE_WAIT_TIMEOUT = 1000; } // This is so we can access some protected members in nux::VLayout and @@ -1352,7 +1354,7 @@ void DashView::OnEntryActivated() // delay the activation until we get the SearchFinished signal activate_on_finish_ = search_in_progress_; - activate_timeout_.reset(new glib::Timeout(1000, [this] { + activate_timeout_.reset(new glib::Timeout(MAX_ENTRY_ACTIVATE_WAIT_TIMEOUT, [this] { activate_on_finish_ = false; active_scope_view_->ActivateFirst(); return FALSE; -- cgit v1.2.3