Wire up the terminate button

This commit is contained in:
Colin Guthrie 2009-03-16 20:28:40 +00:00
parent 798f51f480
commit ee855937cc
2 changed files with 5 additions and 0 deletions

View File

@ -39,12 +39,16 @@ StreamWidget::StreamWidget(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Gl
//deviceCombo->set_active(false); //deviceCombo->set_active(false);
//deviceCombo->signal_clicked().connect(sigc::mem_fun(*this, &MinimalStreamWidget::onDeviceChange)); //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)); muteToggleButton->signal_clicked().connect(sigc::mem_fun(*this, &StreamWidget::onMuteToggleButton));
for (unsigned i = 0; i < PA_CHANNELS_MAX; i++) for (unsigned i = 0; i < PA_CHANNELS_MAX; i++)
channelWidgets[i] = NULL; channelWidgets[i] = NULL;
} }
void StreamWidget::onKill() {
}
void StreamWidget::setChannelMap(const pa_channel_map &m, bool can_decibel) { void StreamWidget::setChannelMap(const pa_channel_map &m, bool can_decibel) {
channelMap = m; channelMap = m;

View File

@ -45,6 +45,7 @@ public:
ChannelWidget *channelWidgets[PA_CHANNELS_MAX]; ChannelWidget *channelWidgets[PA_CHANNELS_MAX];
virtual void onKill();
virtual void onDeviceChange() = 0; virtual void onDeviceChange() = 0;
virtual void onMuteToggleButton(); virtual void onMuteToggleButton();