summaryrefslogtreecommitdiffstats
path: root/src/ClientWindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ClientWindow.cc')
-rw-r--r--src/ClientWindow.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/ClientWindow.cc b/src/ClientWindow.cc
index 6cb814e..01f3ecf 100644
--- a/src/ClientWindow.cc
+++ b/src/ClientWindow.cc
@@ -25,6 +25,7 @@ ClientWindow::ClientWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Gl
closeButton->signal_clicked().connect(sigc::mem_fun(*this, &ClientWindow::onCloseButton));
toOwnerModuleButton->signal_clicked().connect(sigc::mem_fun(*this, &ClientWindow::onToOwnerModuleButton));
+ killButton->signal_clicked().connect(sigc::mem_fun(*this, &ClientWindow::onKillButton));
}
ClientWindow* ClientWindow::create() {
@@ -49,6 +50,8 @@ void ClientWindow::updateInfo(const ClientInfo &i) {
owner_module = i.owner_module;
toOwnerModuleButton->set_sensitive(owner_module != (uint32_t) -1);
+
+ index = i.index;
}
void ClientWindow::onCloseButton() {
@@ -64,3 +67,7 @@ bool ClientWindow::on_delete_event(GdkEventAny*) {
hide();
return false;
}
+
+void ClientWindow::onKillButton() {
+ serverInfoManager->killClient(index);
+}