+
+void
+AudioClock::on_style_changed (const Glib::RefPtr<Gtk::Style>& old_style)
+{
+ HBox::on_style_changed (old_style);
+
+ /* propagate style changes to all component widgets that should inherit the main one */
+
+ Glib::RefPtr<RcStyle> rcstyle = get_modifier_style();
+
+ clock_base.modify_style (rcstyle);
+ audio_frames_label.modify_style (rcstyle);
+ hours_label.modify_style (rcstyle);
+ minutes_label.modify_style (rcstyle);
+ seconds_label.modify_style (rcstyle);
+ frames_label.modify_style (rcstyle);
+ bars_label.modify_style (rcstyle);
+ beats_label.modify_style (rcstyle);
+ ticks_label.modify_style (rcstyle);
+ ms_hours_label.modify_style (rcstyle);
+ ms_minutes_label.modify_style (rcstyle);
+ ms_seconds_label.modify_style (rcstyle);
+ hours_ebox.modify_style (rcstyle);
+ minutes_ebox.modify_style (rcstyle);
+ seconds_ebox.modify_style (rcstyle);
+ frames_ebox.modify_style (rcstyle);
+ audio_frames_ebox.modify_style (rcstyle);
+ bars_ebox.modify_style (rcstyle);
+ beats_ebox.modify_style (rcstyle);
+ ticks_ebox.modify_style (rcstyle);
+ ms_hours_ebox.modify_style (rcstyle);
+ ms_minutes_ebox.modify_style (rcstyle);
+ ms_seconds_ebox.modify_style (rcstyle);
+
+ colon1.modify_style (rcstyle);
+ colon2.modify_style (rcstyle);
+ colon3.modify_style (rcstyle);
+ colon4.modify_style (rcstyle);
+ colon5.modify_style (rcstyle);
+ b1.modify_style (rcstyle);
+ b2.modify_style (rcstyle);
+
+ set_size_requests ();
+}
+
+void
+AudioClock::set_is_duration (bool yn)
+{
+ if (yn == is_duration) {
+ return;
+ }
+
+ is_duration = yn;
+ set (last_when, true, 0, 's');
+}