summaryrefslogtreecommitdiffstats
path: root/src/SinkInputWindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/SinkInputWindow.cc')
-rw-r--r--src/SinkInputWindow.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/SinkInputWindow.cc b/src/SinkInputWindow.cc
index 19546a6..6a59969 100644
--- a/src/SinkInputWindow.cc
+++ b/src/SinkInputWindow.cc
@@ -21,6 +21,7 @@ SinkInputWindow::SinkInputWindow(BaseObjectType* cobject, const Glib::RefPtr<Gno
toSinkButton(NULL),
volumeResetButton(NULL),
volumeMuteButton(NULL),
+ killButton(NULL),
volumeScale(NULL) {
refGlade->get_widget("nameLabel", nameLabel);
@@ -38,6 +39,7 @@ SinkInputWindow::SinkInputWindow(BaseObjectType* cobject, const Glib::RefPtr<Gno
refGlade->get_widget("volumeScale", volumeScale);
refGlade->get_widget("volumeResetButton", volumeResetButton);
refGlade->get_widget("volumeMuteButton", volumeMuteButton);
+ refGlade->get_widget("killButton", killButton);
closeButton->signal_clicked().connect(sigc::mem_fun(*this, &SinkInputWindow::onCloseButton));
toOwnerModuleButton->signal_clicked().connect(sigc::mem_fun(*this, &SinkInputWindow::onToOwnerModuleButton));
@@ -72,7 +74,7 @@ void SinkInputWindow::updateInfo(const SinkInputInfo &i) {
ownerModuleLabel->set_text(t);
}
- snprintf(t, sizeof(t), "%u &#956;s (= buffer: %u &#956;s + sink: %u &#956;s)", i.buffer_usec+i.sink_usec, i.buffer_usec, i.sink_usec);
+ snprintf(t, sizeof(t), "%0.0f &#956;s (= buffer: %0.0f &#956;s + sink: %0.0f &#956;s)", (double) i.buffer_usec+i.sink_usec, (double) i.buffer_usec, (double) i.sink_usec);
latencyLabel->set_markup(t);
SinkInfo *sink = serverInfoManager->getSinkInfo(i.sink);
@@ -134,7 +136,7 @@ void SinkInputWindow::onVolumeMuteButton() {
serverInfoManager->setSinkInputVolume(index, PA_VOLUME_MUTED);
}
-bool SinkInputWindow::on_delete_event(GdkEventAny* e) {
+bool SinkInputWindow::on_delete_event(GdkEventAny* ) {
hide();
return false;
}