diff options
Diffstat (limited to 'src/SourceOutputWindow.cc')
-rw-r--r-- | src/SourceOutputWindow.cc | 6 |
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); +} |