mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-01 11:27:45 +01:00
stop audio clocks from vanishing when turned off
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2148 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
7083d8ce0a
commit
6351ce92f0
2 changed files with 6 additions and 10 deletions
|
|
@ -1873,16 +1873,8 @@ AudioClock::set_mode (Mode m)
|
|||
if (_mode == m) {
|
||||
return;
|
||||
}
|
||||
switch (_mode) {
|
||||
case SMPTE:
|
||||
case BBT:
|
||||
case MinSec:
|
||||
case Frames:
|
||||
clock_base.remove ();
|
||||
break;
|
||||
case Off:
|
||||
break;
|
||||
}
|
||||
|
||||
clock_base.remove ();
|
||||
|
||||
_mode = m;
|
||||
|
||||
|
|
@ -1904,6 +1896,7 @@ AudioClock::set_mode (Mode m)
|
|||
break;
|
||||
|
||||
case Off:
|
||||
clock_base.add (off_hbox);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
@ -1948,6 +1941,7 @@ AudioClock::set_size_requests ()
|
|||
break;
|
||||
|
||||
case Off:
|
||||
Gtkmm2ext::set_size_request_to_display_given_text (off_hbox, "00000", 5, 5);
|
||||
break;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -104,6 +104,8 @@ class AudioClock : public Gtk::HBox
|
|||
Gtk::EventBox audio_frames_ebox;
|
||||
Gtk::Label audio_frames_label;
|
||||
|
||||
Gtk::HBox off_hbox;
|
||||
|
||||
Gtk::EventBox hours_ebox;
|
||||
Gtk::EventBox minutes_ebox;
|
||||
Gtk::EventBox seconds_ebox;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue