From 7b7a12f1d2e6e02b11b7649b394d2122eec57813 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Mon, 16 Mar 2009 19:57:31 +0000 Subject: 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. --- src/streamwidget.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/streamwidget.cc') 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& 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), "%s", pa_channel_position_to_pretty_string(m.map[i])); cw->channelLabel->set_markup(text); -- cgit