mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Limit clock displays to 30days (720hours) by default.
This prevents various edge-cases of selection-clocks (eg. unbound range selection after start-range; and makes it near impossible to roll-over 2^63 using GUI operations)
This commit is contained in:
parent
2ed08f0771
commit
2c7cb9065f
3 changed files with 51 additions and 6 deletions
|
|
@ -130,6 +130,8 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr
|
|||
bool _negative_allowed;
|
||||
bool edit_is_negative;
|
||||
|
||||
framepos_t _limit_pos;
|
||||
|
||||
Glib::RefPtr<Pango::Layout> _layout;
|
||||
|
||||
bool _with_info;
|
||||
|
|
@ -207,6 +209,7 @@ class AudioClock : public CairoWidget, public ARDOUR::SessionHandlePtr
|
|||
void set_bbt (framepos_t, ARDOUR::framecnt_t, bool);
|
||||
void set_minsec (framepos_t, bool);
|
||||
void set_frames (framepos_t, bool);
|
||||
void set_out_of_bounds (bool negative);
|
||||
|
||||
void set_clock_dimensions (Gtk::Requisition&);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue