I found it very frustrating when I missed clicking on the slider by a
few pixels and ended up jumping the volume up by a few 5% increments.
Solve this by setting the page increment size to 0 so clicking on the
trough does nothing.
This fits with my belief that volume values should never change quickly
(5% increments) or unexpectedly (clicking results in a change when I
expect only dragging to result in a change).
---
src/channelwidget.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/channelwidget.cc b/src/channelwidget.cc
index 6f59de2..f137805 100644
--- a/src/channelwidget.cc
+++ b/src/channelwidget.cc
@@ -41,7 +41,7 @@ ChannelWidget::ChannelWidget(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Bu
volumeScale->set_range((double)PA_VOLUME_MUTED, (double)PA_VOLUME_UI_MAX);
volumeScale->set_value((double)PA_VOLUME_NORM);
- volumeScale->set_increments(((double)PA_VOLUME_NORM)/100.0, ((double)PA_VOLUME_NORM)/20.0);
+ volumeScale->set_increments(((double)PA_VOLUME_NORM)/100.0, 0);
setBaseVolume(PA_VOLUME_NORM);
volumeScale->signal_value_changed().connect(sigc::mem_fun(*this, &ChannelWidget::onVolumeScaleValueChanged));
_______________________________________________
pulseaudio-discuss mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/pulseaudio-discuss