diff options
author | Colin Guthrie <cguthrie@mandriva.org> | 2009-03-16 20:47:57 +0000 |
---|---|---|
committer | Colin Guthrie <cguthrie@mandriva.org> | 2009-06-17 08:54:11 +0100 |
commit | 903c26bd4482ab23f12335207681ad17172a0814 (patch) | |
tree | 5ed827ff4d7c6568badcb062c597d5b6127b343a /src/mainwindow.cc | |
parent | 255defb371182e10a90b2d5d6f891a742bc7d0cd (diff) |
Add setter/getter methods for sink/source indexes so we can update our combo boxes current item
Diffstat (limited to 'src/mainwindow.cc')
-rw-r--r-- | src/mainwindow.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc index 97ff044..6565b33 100644 --- a/src/mainwindow.cc +++ b/src/mainwindow.cc @@ -484,7 +484,7 @@ void MainWindow::updateSinkInput(const pa_sink_input_info &info) { w->type = info.client != PA_INVALID_INDEX ? SINK_INPUT_CLIENT : SINK_INPUT_VIRTUAL; - w->sinkIndex = info.sink; + w->setSinkIndex(info.sink); char *txt; if (clientNames.count(info.client)) { @@ -530,7 +530,7 @@ void MainWindow::updateSourceOutput(const pa_source_output_info &info) { w->type = info.client != PA_INVALID_INDEX ? SOURCE_OUTPUT_CLIENT : SOURCE_OUTPUT_VIRTUAL; - w->sourceIndex = info.source; + w->setSourceIndex(info.source); char *txt; if (clientNames.count(info.client)) { @@ -694,7 +694,7 @@ void MainWindow::updateVolumeMeter(uint32_t source_index, uint32_t sink_input_id for (std::map<uint32_t, SourceOutputWidget*>::iterator i = sourceOutputWidgets.begin(); i != sourceOutputWidgets.end(); ++i) { SourceOutputWidget* w = i->second; - if (w->sourceIndex == source_index) + if (w->sourceIndex() == source_index) w->updatePeak(v); } } |