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/SourceOutputWindow.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/SourceOutputWindow.cc') diff --git a/src/SourceOutputWindow.cc b/src/SourceOutputWindow.cc index e93dff4..e2cc5db 100644 --- a/src/SourceOutputWindow.cc +++ b/src/SourceOutputWindow.cc @@ -37,6 +37,7 @@ SourceOutputWindow::SourceOutputWindow(BaseObjectType* cobject, const Glib::RefP toOwnerModuleButton->signal_clicked().connect(sigc::mem_fun(*this, &SourceOutputWindow::onToOwnerModuleButton)); toClientButton->signal_clicked().connect(sigc::mem_fun(*this, &SourceOutputWindow::onToClientButton)); toSourceButton->signal_clicked().connect(sigc::mem_fun(*this, &SourceOutputWindow::onToSourceButton)); + killButton->signal_clicked().connect(sigc::mem_fun(*this, &SourceOutputWindow::onKillButton)); } SourceOutputWindow* SourceOutputWindow::create() { @@ -80,6 +81,7 @@ void SourceOutputWindow::updateInfo(const SourceOutputInfo &i) { this->source = i.source; owner_module = i.owner_module; client = i.client; + index = i.index; toOwnerModuleButton->set_sensitive(owner_module != PA_INVALID_INDEX); toClientButton->set_sensitive(client != PA_INVALID_INDEX); @@ -108,3 +110,7 @@ bool SourceOutputWindow::on_delete_event(GdkEventAny*) { hide(); return false; } + +void SourceOutputWindow::onKillButton() { + serverInfoManager->killSourceOutput(index); +} -- cgit