diff options
author | Robin Gareus <robin@gareus.org> | 2014-11-30 15:04:56 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-11-30 15:05:40 +0100 |
commit | 4d4c20b8ccbe9638e9288abdadf66a6f7840b391 (patch) | |
tree | ea0b4b938101958a40d0bb76c14e8ffebd8c5957 /gtk2_ardour/automation_controller.cc | |
parent | 18efe8f446f45b541f19a2f99dd707f66fb72a3e (diff) |
gtk interface update for controller step/page size
Diffstat (limited to 'gtk2_ardour/automation_controller.cc')
-rw-r--r-- | gtk2_ardour/automation_controller.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gtk2_ardour/automation_controller.cc b/gtk2_ardour/automation_controller.cc index 511fb0bf2f..a7922d2f00 100644 --- a/gtk2_ardour/automation_controller.cc +++ b/gtk2_ardour/automation_controller.cc @@ -129,13 +129,16 @@ AutomationController::create(boost::shared_ptr<Automatable> printer, double smallstep = desc.smallstep; double largestep = desc.largestep; if (smallstep == 0.0) { - smallstep = (up - lo) / 100; + smallstep = up / 1000.; + } else { + smallstep = ac->internal_to_interface(desc.lower + smallstep); } + if (largestep == 0.0) { - largestep = (up - lo) / 10; + largestep = up / 40.; + } else { + largestep = ac->internal_to_interface(desc.lower + largestep); } - smallstep = ac->internal_to_interface(smallstep); - largestep = ac->internal_to_interface(largestep); Gtk::Adjustment* adjustment = manage ( new Gtk::Adjustment (normal, lo, up, smallstep, largestep)); |