summaryrefslogtreecommitdiffstats
path: root/src/sourcewidget.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/sourcewidget.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/sourcewidget.cc')
-rw-r--r--src/sourcewidget.cc14
1 files changed, 4 insertions, 10 deletions
diff --git a/src/sourcewidget.cc b/src/sourcewidget.cc
index c77f4f2..cef0a3e 100644
--- a/src/sourcewidget.cc
+++ b/src/sourcewidget.cc
@@ -27,15 +27,7 @@
#include "i18n.h"
SourceWidget::SourceWidget(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& x) :
- DeviceWidget(cobject, x),
- defaultMenuItem(_("_Default"), true){
-
- add_events(Gdk::BUTTON_PRESS_MASK);
-
- defaultMenuItem.set_active(false);
- defaultMenuItem.signal_toggled().connect(sigc::mem_fun(*this, &SourceWidget::onDefaultToggle));
- menu.append(defaultMenuItem);
- menu.show_all();
+ DeviceWidget(cobject, x) {
}
SourceWidget* SourceWidget::create() {
@@ -71,9 +63,11 @@ void SourceWidget::onMuteToggleButton() {
pa_operation_unref(o);
}
-void SourceWidget::onDefaultToggle() {
+void SourceWidget::onDefaultToggleButton() {
pa_operation* o;
+ DeviceWidget::onDefaultToggleButton();
+
if (updating)
return;