properly initialize source output type dropdown; show string for record streams properly

git-svn-id: file:///home/lennart/svn/public/pavucontrol/trunk@77 c17c95f2-f111-0410-90bf-f30a9569010c
This commit is contained in:
Lennart Poettering 2008-04-22 00:45:40 +00:00
parent 99cad6b3ea
commit 93aa980ebc
1 changed files with 4 additions and 0 deletions

View File

@ -810,6 +810,7 @@ MainWindow::MainWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade:
Gtk::Window(cobject), Gtk::Window(cobject),
showSinkInputType(SINK_INPUT_CLIENT), showSinkInputType(SINK_INPUT_CLIENT),
showSinkType(SINK_ALL), showSinkType(SINK_ALL),
showSourceOutputType(SOURCE_OUTPUT_CLIENT),
showSourceType(SOURCE_NO_MONITOR) { showSourceType(SOURCE_NO_MONITOR) {
x->get_widget("streamsVBox", streamsVBox); x->get_widget("streamsVBox", streamsVBox);
@ -828,6 +829,7 @@ MainWindow::MainWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade:
sourcesVBox->set_reallocate_redraws(true); sourcesVBox->set_reallocate_redraws(true);
streamsVBox->set_reallocate_redraws(true); streamsVBox->set_reallocate_redraws(true);
recsVBox->set_reallocate_redraws(true);
sinksVBox->set_reallocate_redraws(true); sinksVBox->set_reallocate_redraws(true);
sinkInputTypeComboBox->set_active((int) showSinkInputType); sinkInputTypeComboBox->set_active((int) showSinkInputType);
@ -1081,6 +1083,8 @@ void MainWindow::updateDeviceVisibility() {
if (is_empty) if (is_empty)
noStreamsLabel->show(); noStreamsLabel->show();
is_empty = true;
for (std::map<uint32_t, SourceOutputWidget*>::iterator i = sourceOutputWidgets.begin(); i != sourceOutputWidgets.end(); ++i) { for (std::map<uint32_t, SourceOutputWidget*>::iterator i = sourceOutputWidgets.begin(); i != sourceOutputWidgets.end(); ++i) {
SourceOutputWidget* w = i->second; SourceOutputWidget* w = i->second;