summaryrefslogtreecommitdiffstats
path: root/src/SourceOutputWindow.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/SourceOutputWindow.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/SourceOutputWindow.cc')
-rw-r--r--src/SourceOutputWindow.cc6
1 files changed, 6 insertions, 0 deletions
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);
+}