~brandontschaefer/unity/lp.1099815-fix

« back to all changes in this revision

Viewing changes to shutdown/SessionView.cpp

  • Committer: Tarmac
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2013-03-19 19:43:45 UTC
  • mfrom: (3227.1.8 shutdown-fixes)
  • Revision ID: tarmac-20130319194345-b2wr78yficcl9ztd
SessionView: invert the position of reboot/shutdown buttons. Fixes: https://bugs.launchpad.net/bugs/1154578.

Approved by PS Jenkins bot, Andrea Azzarone.

Show diffs side-by-side

added added

removed removed

Lines of Context:
206
206
 
207
207
    if (manager_->CanShutdown())
208
208
    {
209
 
      auto* button = new Button(Button::Action::SHUTDOWN, NUX_TRACKER_LOCATION);
 
209
      auto *button = new Button(Button::Action::REBOOT, NUX_TRACKER_LOCATION);
 
210
      button->activated.connect(sigc::mem_fun(manager_.get(), &Manager::Reboot));
 
211
      AddButton(button);
 
212
 
 
213
      button = new Button(Button::Action::SHUTDOWN, NUX_TRACKER_LOCATION);
210
214
      button->activated.connect(sigc::mem_fun(manager_.get(), &Manager::Shutdown));
211
215
      AddButton(button);
212
 
 
213
 
      button = new Button(Button::Action::REBOOT, NUX_TRACKER_LOCATION);
214
 
      button->activated.connect(sigc::mem_fun(manager_.get(), &Manager::Reboot));
215
 
      AddButton(button);
216
216
    }
217
217
    else if (mode() == Mode::FULL)
218
218
    {