summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorColin Guthrie <cguthrie@mandriva.org>2009-03-16 20:28:40 +0000
committerColin Guthrie <cguthrie@mandriva.org>2009-06-17 08:54:11 +0100
commitee855937cc3e95537251490ab35018fcde6eab5c (patch)
treec204d387196d34ee605e07f31b0fee8c709ba3c4 /src
parent798f51f480cefc5a0f15223e735d870b870749ee (diff)
Wire up the terminate button
Diffstat (limited to 'src')
-rw-r--r--src/streamwidget.cc4
-rw-r--r--src/streamwidget.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/streamwidget.cc b/src/streamwidget.cc
index 322308d..96eecb7 100644
--- a/src/streamwidget.cc
+++ b/src/streamwidget.cc
@@ -39,12 +39,16 @@ StreamWidget::StreamWidget(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Gl
//deviceCombo->set_active(false);
//deviceCombo->signal_clicked().connect(sigc::mem_fun(*this, &MinimalStreamWidget::onDeviceChange));
+ terminateButton->signal_clicked().connect(sigc::mem_fun(*this, &StreamWidget::onKill));
muteToggleButton->signal_clicked().connect(sigc::mem_fun(*this, &StreamWidget::onMuteToggleButton));
for (unsigned i = 0; i < PA_CHANNELS_MAX; i++)
channelWidgets[i] = NULL;
}
+void StreamWidget::onKill() {
+}
+
void StreamWidget::setChannelMap(const pa_channel_map &m, bool can_decibel) {
channelMap = m;
diff --git a/src/streamwidget.h b/src/streamwidget.h
index 3b4566d..c7d68d9 100644
--- a/src/streamwidget.h
+++ b/src/streamwidget.h
@@ -45,6 +45,7 @@ public:
ChannelWidget *channelWidgets[PA_CHANNELS_MAX];
+ virtual void onKill();
virtual void onDeviceChange() = 0;
virtual void onMuteToggleButton();