diff options
| author | Nick Dedekind <nicholas.dedekind@gmail.com> | 2013-05-13 17:03:47 +0100 |
|---|---|---|
| committer | Nick Dedekind <nicholas.dedekind@gmail.com> | 2013-05-13 17:03:47 +0100 |
| commit | 358098d7eeb701b4b0981a00cf211bb1d1243f71 (patch) | |
| tree | d5f151b00030064ae52a858bea6dde834ba68602 /dash | |
| parent | 820bc639773cbd4c8f447aac8e5cd55deaf94875 (diff) | |
use const value for entry activate wait timeout
(bzr r3008.58.2)
Diffstat (limited to 'dash')
| -rw-r--r-- | dash/DashView.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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; |
