switch to sink page by default if no streams are active

git-svn-id: file:///home/lennart/svn/public/pavucontrol/trunk@76 c17c95f2-f111-0410-90bf-f30a9569010c
This commit is contained in:
Lennart Poettering 2008-04-21 00:21:04 +00:00
parent ddbfecc15b
commit 99cad6b3ea
2 changed files with 684 additions and 1172 deletions

View File

@ -271,6 +271,7 @@ public:
void removeSourceOutput(uint32_t index);
void removeClient(uint32_t index);
Gtk::Notebook *notebook;
Gtk::VBox *streamsVBox, *recsVBox, *sinksVBox, *sourcesVBox;
Gtk::Label *noStreamsLabel, *noRecsLabel, *noSinksLabel, *noSourcesLabel;
Gtk::ComboBox *sinkInputTypeComboBox, *sourceOutputTypeComboBox, *sinkTypeComboBox, *sourceTypeComboBox;
@ -823,6 +824,7 @@ MainWindow::MainWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade:
x->get_widget("sourceOutputTypeComboBox", sourceOutputTypeComboBox);
x->get_widget("sinkTypeComboBox", sinkTypeComboBox);
x->get_widget("sourceTypeComboBox", sourceTypeComboBox);
x->get_widget("notebook", notebook);
sourcesVBox->set_reallocate_redraws(true);
streamsVBox->set_reallocate_redraws(true);
@ -1248,6 +1250,9 @@ void sink_input_cb(pa_context *, const pa_sink_input_info *i, int eol, void *use
MainWindow *w = static_cast<MainWindow*>(userdata);
if (eol) {
if (w->sinkInputWidgets.size() <= 0)
w->notebook->set_current_page(2);
dec_outstanding(w);
return;
}

File diff suppressed because it is too large Load Diff