From 9481de22354d1f07212c39a9ed67134930bfe2a5 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 16 Sep 2004 22:57:01 +0000 Subject: implement client/source-output/sink-input killing git-svn-id: file:///home/lennart/svn/public/paman/trunk@34 cdefa82f-4ce1-0310-97f5-ab6066f37c3c --- src/ClientWindow.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/ClientWindow.cc') 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::RefPtrsignal_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); +} -- cgit