From 5143fa8dae53448f9b777b848f1026515d1ce247 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 27 Aug 2009 05:40:47 +0200 Subject: [PATCH] only assume that the minimal volume is silence for devices that can do dB volumes --- src/channelwidget.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/channelwidget.cc b/src/channelwidget.cc index 7914f6b..40aa298 100644 --- a/src/channelwidget.cc +++ b/src/channelwidget.cc @@ -117,7 +117,8 @@ void ChannelWidget::set_sensitive(bool enabled) { void ChannelWidget::setBaseVolume(pa_volume_t v) { - gtk_scale_add_mark(GTK_SCALE(volumeScale->gobj()), 0.0, (GtkPositionType) GTK_POS_BOTTOM, _("Silence")); + gtk_scale_add_mark(GTK_SCALE(volumeScale->gobj()), 0.0, (GtkPositionType) GTK_POS_BOTTOM, + can_decibel ? _("Silence") : _("Min")); gtk_scale_add_mark(GTK_SCALE(volumeScale->gobj()), 100.0, (GtkPositionType) GTK_POS_BOTTOM, _("Max")); if (v > PA_VOLUME_MUTED && v < PA_VOLUME_NORM) {