~attente/unity/hud-controller-gvariant-type-error

« back to all changes in this revision

Viewing changes to launcher/SwitcherController.cpp

  • Committer: Marco Trevisan (Treviño)
  • Date: 2013-11-14 03:00:29 UTC
  • mto: This revision was merged to the branch mainline in revision 3596.
  • Revision ID: mail@3v1n0.net-20131114030029-jw6albd1rccg1uzm
Unity: always prefer passing [this] to lambdas than [&]

Show diffs side-by-side

added added

removed removed

Lines of Context:
301
301
    };
302
302
 
303
303
  // TODO We need to get actual timing data to suggest this is necessary.
304
 
  //sources_.AddTimeoutSeconds(construct_timeout_, [&] { ConstructWindow(); return false; }, LAZY_TIMEOUT);
 
304
  //sources_.AddTimeoutSeconds(construct_timeout_, [this] { ConstructWindow(); return false; }, LAZY_TIMEOUT);
305
305
 
306
306
  fade_animator_.updated.connect([this] (double opacity) {
307
307
    if (view_window_)
345
345
 
346
346
  if (real_wait > 0)
347
347
  {
348
 
    sources_.AddIdle([&] { ConstructView(); return false; }, VIEW_CONSTRUCT_IDLE);
349
 
    sources_.AddTimeout(real_wait, [&] { ShowView(); return false; }, SHOW_TIMEOUT);
 
348
    sources_.AddIdle([this] { ConstructView(); return false; }, VIEW_CONSTRUCT_IDLE);
 
349
    sources_.AddTimeout(real_wait, [this] { ShowView(); return false; }, SHOW_TIMEOUT);
350
350
  }
351
351
  else
352
352
  {