~dandrader/nux/geis

« back to all changes in this revision

Viewing changes to Nux/ProgramFramework/ProgramTemplate.cpp

* Refactoring Nux timer API: Some cleanup and update were required for the animation framework.. Fixes: . Approved by Jay Taoko.

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
  if (program_life_span_ > 0)
90
90
  {
91
91
    timeout_signal_ = new nux::TimeOutSignal();
92
 
    timeout_signal_->time_expires.connect(sigc::mem_fun(this, &ProgramTemplate::ProgramExitCall));
93
 
    window_thread_->GetTimerHandler().AddTimerHandler(program_life_span_, timeout_signal_, NULL, NULL);
 
92
    timeout_signal_->tick.connect(sigc::mem_fun(this, &ProgramTemplate::ProgramExitCall));
 
93
    window_thread_->GetTimerHandler().AddOneShotTimer(program_life_span_, timeout_signal_, NULL, NULL);
94
94
  }
95
95
 
96
96
  window_thread_->Run(NULL);