summaryrefslogtreecommitdiff
path: root/shutdown
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2013-03-07 22:19:00 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2013-03-07 22:19:00 +0100
commitb157338ae25c7e3a0e4e597b2ee8cd1329b923f3 (patch)
tree5288cd4584265d3451ff0a4d5f829a4f84a91a93 /shutdown
parente249051d0de11b082a661baf8f0a75b387d9424b (diff)
TestSessionView: added tests to check the view elements on mode changes
(bzr r3144.4.80)
Diffstat (limited to 'shutdown')
-rw-r--r--shutdown/SessionView.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/shutdown/SessionView.cpp b/shutdown/SessionView.cpp
index 43f1640e2..b954fae14 100644
--- a/shutdown/SessionView.cpp
+++ b/shutdown/SessionView.cpp
@@ -205,6 +205,12 @@ void View::Populate()
button->activated.connect(sigc::mem_fun(manager_.get(), &Manager::Reboot));
AddButton(button);
}
+ else if (mode() == Mode::FULL)
+ {
+ auto* button = new Button(_("Logout"), "logout", NUX_TRACKER_LOCATION);
+ button->activated.connect(sigc::mem_fun(manager_.get(), &Manager::Logout));
+ AddButton(button);
+ }
}
}