only assume that the minimal volume is silence for devices that can do dB volumes

This commit is contained in:
Lennart Poettering 2009-08-27 05:40:47 +02:00
parent b373c000ea
commit 5143fa8dae
1 changed files with 2 additions and 1 deletions

View File

@ -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, _("<small>Silence</small>"));
gtk_scale_add_mark(GTK_SCALE(volumeScale->gobj()), 0.0, (GtkPositionType) GTK_POS_BOTTOM,
can_decibel ? _("<small>Silence</small>") : _("<small>Min</small>"));
gtk_scale_add_mark(GTK_SCALE(volumeScale->gobj()), 100.0, (GtkPositionType) GTK_POS_BOTTOM, _("<small>Max</small>"));
if (v > PA_VOLUME_MUTED && v < PA_VOLUME_NORM) {