From ee855937cc3e95537251490ab35018fcde6eab5c Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Mon, 16 Mar 2009 20:28:40 +0000 Subject: Wire up the terminate button --- src/streamwidget.cc | 4 ++++ src/streamwidget.h | 1 + 2 files changed, 5 insertions(+) (limited to 'src') 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::RefPtrset_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(); -- cgit