13
0

Add API set bar-controller spinbox digits

..and reduce default to 4 digits.
This commit is contained in:
Robin Gareus 2017-09-23 19:39:36 +02:00
parent a9c8a25fc4
commit 39fb5762b0
2 changed files with 2 additions and 1 deletions

View File

@ -58,7 +58,7 @@ BarController::BarController (Gtk::Adjustment& adj,
Gtk::SpinButton& spinner = _slider.get_spin_button();
spinner.signal_activate().connect (mem_fun (*this, &BarController::entry_activated));
spinner.signal_focus_out_event().connect (mem_fun (*this, &BarController::entry_focus_out));
spinner.set_digits (9);
spinner.set_digits (4);
spinner.set_numeric (true);
spinner.set_name ("BarControlSpinner");
add (_slider);

View File

@ -36,6 +36,7 @@ public:
virtual ~BarController ();
void set_sensitive (bool yn);
void set_digits (guint d) { _slider.get_spin_button().set_digits (d); }
ArdourFader::Tweaks tweaks() const { return _slider.tweaks (); }
void set_tweaks (ArdourFader::Tweaks t) { _slider.set_tweaks (t);}