~azzar1/unity/lp-1165097

« back to all changes in this revision

Viewing changes to unity-shared/UnityWindowView.cpp

  • Committer: Marco Trevisan (Treviño)
  • Date: 2013-02-11 22:41:12 UTC
  • mto: This revision was merged to the branch mainline in revision 3200.
  • Revision ID: mail@3v1n0.net-20130211224112-k1nxtougs7xgdjj5
ShutdownView: first draft implementation

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
  close_button_->SetSize(texture->GetWidth(), texture->GetHeight());
67
67
  close_button_->SetBaseXY(padding, padding);
68
68
 
69
 
  close_button_->mouse_click.connect([this](int, int, unsigned long, unsigned long)
70
 
  {
 
69
  close_button_->SetParentObject(this);   
 
70
 
 
71
  close_button_->mouse_down.connect([this](int, int, unsigned long, unsigned long) { QueueDraw(); });
 
72
  close_button_->mouse_up.connect([this](int, int, unsigned long, unsigned long) { QueueDraw(); });
 
73
 
 
74
  close_button_->mouse_click.connect([this](int, int, unsigned long, unsigned long) {
71
75
    request_close.emit();
72
 
    QueueDraw();
73
76
  });
74
77
}
75
78