summaryrefslogtreecommitdiffstats
path: root/src/streamwidget.cc
diff options
context:
space:
mode:
authorColin Guthrie <cguthrie@mandriva.org>2009-03-16 19:57:31 +0000
committerColin Guthrie <cguthrie@mandriva.org>2009-06-17 08:54:10 +0100
commit7b7a12f1d2e6e02b11b7649b394d2122eec57813 (patch)
treec38d0ec7b57c096d1be5e5010ad9ae7fb54b3a3a /src/streamwidget.cc
parente509205be255da3779377f12858598755581691b (diff)
Adapt to new UI
The actual wiring up of events and clearing out of old, unused elements is not complete yet, so this is completely non-functional at present.
Diffstat (limited to 'src/streamwidget.cc')
-rw-r--r--src/streamwidget.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/streamwidget.cc b/src/streamwidget.cc
index fae605f..322308d 100644
--- a/src/streamwidget.cc
+++ b/src/streamwidget.cc
@@ -26,12 +26,18 @@
#include "channelwidget.h"
/*** StreamWidget ***/
-
StreamWidget::StreamWidget(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& x) :
MinimalStreamWidget(cobject, x) {
x->get_widget("lockToggleButton", lockToggleButton);
x->get_widget("muteToggleButton", muteToggleButton);
+ x->get_widget("deviceCombo", deviceCombo);
+ x->get_widget("terminateButton", terminateButton);
+ x->get_widget("directionLabel", directionLabel);
+ x->get_widget("streamControlHBox", streamControlHBox);
+
+ //deviceCombo->set_active(false);
+ //deviceCombo->signal_clicked().connect(sigc::mem_fun(*this, &MinimalStreamWidget::onDeviceChange));
muteToggleButton->signal_clicked().connect(sigc::mem_fun(*this, &StreamWidget::onMuteToggleButton));
@@ -47,7 +53,7 @@ void StreamWidget::setChannelMap(const pa_channel_map &m, bool can_decibel) {
cw->beepDevice = beepDevice;
cw->channel = i;
cw->can_decibel = can_decibel;
- cw->streamWidget = this;
+ cw->minimalStreamWidget = this;
char text[64];
snprintf(text, sizeof(text), "<b>%s</b>", pa_channel_position_to_pretty_string(m.map[i]));
cw->channelLabel->set_markup(text);