summaryrefslogtreecommitdiffstats
path: root/src/mainwindow.cc
diff options
context:
space:
mode:
authorColin Guthrie <cguthrie@mandriva.org>2009-03-16 23:21:40 +0000
committerColin Guthrie <cguthrie@mandriva.org>2009-06-17 08:54:12 +0100
commit4bd94fa2b86fb8464829c806ae517db113924bd2 (patch)
tree2d7d0e6b9b80ea9a86c02d888fd228e2b10fc48f /src/mainwindow.cc
parent4c3acd35e5d406846c6f9d0596ce4f834e373bd8 (diff)
Wire up all the new UI code.
This makes the default button work on sinks/sources, allows the drop down to actually change the sink/source and removes the old menu code. Some names and such are fixed in the glade file too.
Diffstat (limited to 'src/mainwindow.cc')
-rw-r--r--src/mainwindow.cc13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/mainwindow.cc b/src/mainwindow.cc
index de7aab8..f76f37a 100644
--- a/src/mainwindow.cc
+++ b/src/mainwindow.cc
@@ -245,7 +245,8 @@ void MainWindow::updateSink(const pa_sink_info &info) {
w->setVolume(info.volume);
w->muteToggleButton->set_active(info.mute);
- w->defaultMenuItem.set_active(w->name == defaultSinkName);
+ w->defaultToggleButton->set_active(w->name == defaultSinkName);
+ w->defaultToggleButton->set_sensitive(w->name != defaultSinkName);
w->updating = false;
@@ -422,7 +423,8 @@ void MainWindow::updateSource(const pa_source_info &info) {
w->setVolume(info.volume);
w->muteToggleButton->set_active(info.mute);
- w->defaultMenuItem.set_active(w->name == defaultSourceName);
+ w->defaultToggleButton->set_active(w->name == defaultSourceName);
+ w->defaultToggleButton->set_sensitive(w->name != defaultSourceName);
w->updating = false;
@@ -592,7 +594,9 @@ void MainWindow::updateServer(const pa_server_info &info) {
continue;
w->updating = true;
- w->defaultMenuItem.set_active(w->name == defaultSinkName);
+ w->defaultToggleButton->set_active(w->name == defaultSinkName);
+ w->defaultToggleButton->set_sensitive(w->name != defaultSinkName);
+
w->updating = false;
}
@@ -603,7 +607,8 @@ void MainWindow::updateServer(const pa_server_info &info) {
continue;
w->updating = true;
- w->defaultMenuItem.set_active(w->name == defaultSourceName);
+ w->defaultToggleButton->set_active(w->name == defaultSourceName);
+ w->defaultToggleButton->set_sensitive(w->name != defaultSourceName);
w->updating = false;
}
}