From 903c26bd4482ab23f12335207681ad17172a0814 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Mon, 16 Mar 2009 20:47:57 +0000 Subject: Add setter/getter methods for sink/source indexes so we can update our combo boxes current item --- src/mainwindow.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mainwindow.cc') 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::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); } } -- cgit