Move the setBaseVolume()/setSteps() methods to devicewidget (problem found after rebasing)
This commit is contained in:
parent
dea5d0a0fe
commit
ddd7d06dde
|
@ -107,3 +107,15 @@ bool DeviceWidget::timeoutEvent() {
|
|||
|
||||
void DeviceWidget::executeVolumeUpdate() {
|
||||
}
|
||||
|
||||
void DeviceWidget::setBaseVolume(pa_volume_t v) {
|
||||
|
||||
if (channelMap.channels > 0)
|
||||
channelWidgets[channelMap.channels-1]->setBaseVolume(v);
|
||||
}
|
||||
|
||||
void DeviceWidget::setSteps(unsigned n) {
|
||||
|
||||
for (int i = 0; i < channelMap.channels; i++)
|
||||
channelWidgets[channelMap.channels-1]->setSteps(n);
|
||||
}
|
||||
|
|
|
@ -50,6 +50,8 @@ public:
|
|||
bool timeoutEvent();
|
||||
|
||||
virtual void executeVolumeUpdate();
|
||||
virtual void setBaseVolume(pa_volume_t v);
|
||||
virtual void setSteps(unsigned n);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -109,16 +109,3 @@ bool StreamWidget::timeoutEvent() {
|
|||
|
||||
void StreamWidget::executeVolumeUpdate() {
|
||||
}
|
||||
|
||||
|
||||
void StreamWidget::setBaseVolume(pa_volume_t v) {
|
||||
|
||||
if (channelMap.channels > 0)
|
||||
channelWidgets[channelMap.channels-1]->setBaseVolume(v);
|
||||
}
|
||||
|
||||
void StreamWidget::setSteps(unsigned n) {
|
||||
|
||||
for (int i = 0; i < channelMap.channels; i++)
|
||||
channelWidgets[channelMap.channels-1]->setSteps(n);
|
||||
}
|
||||
|
|
|
@ -54,8 +54,6 @@ public:
|
|||
bool timeoutEvent();
|
||||
|
||||
virtual void executeVolumeUpdate();
|
||||
virtual void setBaseVolume(pa_volume_t v);
|
||||
virtual void setSteps(unsigned n);
|
||||
|
||||
protected:
|
||||
Gtk::ComboBox *deviceCombo;
|
||||
|
|
Loading…
Reference in New Issue