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

« back to all changes in this revision

Viewing changes to panel/PanelTitlebarGrabAreaView.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:
49
49
  mouse_up.connect(sigc::mem_fun(this, &PanelTitlebarGrabArea::OnMouseUp));
50
50
  mouse_drag.connect(sigc::mem_fun(this, &PanelTitlebarGrabArea::OnGrabMove));
51
51
 
52
 
  mouse_double_click.connect([&] (int x, int y, unsigned long button_flags, unsigned long)
 
52
  mouse_double_click.connect([this] (int x, int y, unsigned long button_flags, unsigned long)
53
53
  {
54
54
    if (nux::GetEventButton(button_flags) == 1)
55
55
      restore_request.emit(x, y);
102
102
    mouse_down_point_.y = y;
103
103
 
104
104
    mouse_down_timer_.reset(new glib::Timeout(MOUSE_DOWN_TIMEOUT));
105
 
    mouse_down_timer_->Run([&] () {
 
105
    mouse_down_timer_->Run([this] () {
106
106
      if (!grab_started_)
107
107
      {
108
108
        nux::Point const& mouse = nux::GetGraphicsDisplay()->GetMouseScreenCoord();