volume: Don't bother setting the steps.

The number of volume steps doesn't really affect our scale, so there
is little value in setting it.
This commit is contained in:
Colin Guthrie 2011-03-09 21:54:05 +00:00
parent 297af52ae5
commit c70b048c98
5 changed files with 0 additions and 14 deletions

View File

@ -112,7 +112,3 @@ void ChannelWidget::setBaseVolume(pa_volume_t v) {
}
}
void ChannelWidget::setSteps(unsigned n) {
/*volumeScale->set_increments(100.0/(n-1), 100.0/(n-1));*/
}

View File

@ -47,7 +47,6 @@ public:
virtual void set_sensitive(bool enabled);
virtual void setBaseVolume(pa_volume_t);
virtual void setSteps(unsigned n);
};

View File

@ -139,12 +139,6 @@ void DeviceWidget::setBaseVolume(pa_volume_t v) {
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);
}
void DeviceWidget::prepareMenu() {
int idx = 0;
int active_idx = -1;

View File

@ -58,7 +58,6 @@ public:
virtual void executeVolumeUpdate();
virtual void setBaseVolume(pa_volume_t v);
virtual void setSteps(unsigned n);
std::vector< std::pair<Glib::ustring,Glib::ustring> > ports;
Glib::ustring activePort;

View File

@ -278,7 +278,6 @@ void MainWindow::updateSink(const pa_sink_info &info) {
is_new = true;
w->setBaseVolume(info.base_volume);
w->setSteps(info.n_volume_steps);
}
w->updating = true;
@ -415,7 +414,6 @@ void MainWindow::updateSource(const pa_source_info &info) {
is_new = true;
w->setBaseVolume(info.base_volume);
w->setSteps(info.n_volume_steps);
if (pa_context_get_server_protocol_version(get_context()) >= 13)
createMonitorStreamForSource(info.index);