From f7c8bbc1a0e2132a78aaceaa5438ca69ff156176 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 18 Nov 2011 16:23:37 +0000 Subject: [PATCH] use figure dash (\u2012) for off state in clocks, and respond to color changes git-svn-id: svn://localhost/ardour2/branches/3.0@10674 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/audio_clock.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc index a7e7bbf418..82ff0a48f0 100644 --- a/gtk2_ardour/audio_clock.cc +++ b/gtk2_ardour/audio_clock.cc @@ -37,6 +37,7 @@ #include "ardour_ui.h" #include "audio_clock.h" +#include "global_signals.h" #include "utils.h" #include "keyboard.h" #include "gui_thread.h" @@ -95,6 +96,8 @@ AudioClock::AudioClock (const string& clock_name, bool transient, const string& if (!is_transient) { clocks.push_back (this); } + + ColorsChanged.connect (sigc::mem_fun (*this, &AudioClock::set_colors)); } AudioClock::~AudioClock () @@ -772,7 +775,7 @@ AudioClock::set_minsec (framepos_t when, bool force) int millisecs; if (_off) { - _layout->set_text ("--:--:--"); + _layout->set_text ("\u2012\u2012:\u2012\u2012:\u2012\u2012.\u2012\u2012\u2012\u2012"); if (_left_layout) { _left_layout->set_text (""); @@ -802,7 +805,7 @@ AudioClock::set_timecode (framepos_t when, bool force) Timecode::Time TC; if (_off) { - _layout->set_text ("--:--:--:--"); + _layout->set_text ("\u2012\u2012:\u2012\u2012:\u2012\u2012:\u2012\u2012"); if (_left_layout) { _left_layout->set_text (""); _right_layout->set_text (""); @@ -845,7 +848,7 @@ AudioClock::set_bbt (framepos_t when, bool force) Timecode::BBT_Time BBT; if (_off) { - _layout->set_text ("--|--|--"); + _layout->set_text ("\u2012\u2012|\u2012\u2012|\u2012\u2012"); if (_left_layout) { _left_layout->set_text (""); _right_layout->set_text ("");