summaryrefslogtreecommitdiffstats
path: root/src/ClientWindow.cc
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-09-16 22:57:01 +0000
committerLennart Poettering <lennart@poettering.net>2004-09-16 22:57:01 +0000
commit9481de22354d1f07212c39a9ed67134930bfe2a5 (patch)
tree95e597c6e4a3e0b4fd472e17949c1da39de0298c /src/ClientWindow.cc
parent0a84f669d3d4c72c498b01b999dd89af7f917480 (diff)
implement client/source-output/sink-input killing
git-svn-id: file:///home/lennart/svn/public/paman/trunk@34 cdefa82f-4ce1-0310-97f5-ab6066f37c3c
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);
+}