From 63d3d1ff3d1eb5dc06ea9cec378f4bd1d3c33bc0 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 14 Oct 2024 17:57:15 +0200 Subject: [PATCH] Initialize fader's numeric entry adjustment Previously the internal adjustment used for numeric entry was left at 0 if the BarController's adjustment was never modified. --- libs/widgets/slider_controller.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/widgets/slider_controller.cc b/libs/widgets/slider_controller.cc index 9adf823d58..4110ff1844 100644 --- a/libs/widgets/slider_controller.cc +++ b/libs/widgets/slider_controller.cc @@ -57,6 +57,8 @@ SliderController::SliderController (Gtk::Adjustment *adj, std::shared_ptrinterface_to_internal(adj->get_page_increment()) - _ctrl->lower ()); } + ctrl_adjusted (); + adj->signal_value_changed().connect (sigc::mem_fun(*this, &SliderController::ctrl_adjusted)); _spin_adj.signal_value_changed().connect (sigc::mem_fun(*this, &SliderController::spin_adjusted));