13
0

Fix font sizing in the big clock.

git-svn-id: svn://localhost/ardour2/branches/3.0@7650 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-08-18 14:16:44 +00:00
parent 8d9c88f48f
commit 6832155310
3 changed files with 8 additions and 5 deletions

View File

@ -560,7 +560,7 @@ ARDOUR_UI::setup_clock ()
{
ARDOUR_UI::Clock.connect (sigc::bind (sigc::mem_fun (big_clock, &AudioClock::set), false));
big_clock_window->set (new Window (WINDOW_TOPLEVEL));
big_clock_window->set (new Window (WINDOW_TOPLEVEL), false);
big_clock_window->get()->set_keep_above (true);
big_clock_window->get()->set_border_width (0);
@ -593,6 +593,8 @@ ARDOUR_UI::big_clock_realized ()
if (!fd.get_size_is_absolute ()) {
original_big_clock_font_size /= PANGO_SCALE;
}
big_clock_window->setup ();
}
void

View File

@ -82,7 +82,6 @@ WindowProxyBase::maybe_show ()
{
if (_visible) {
show ();
setup ();
}
}

View File

@ -90,10 +90,12 @@ public:
return _window;
}
/** Set the window and set it up. To be used after initial window creation */
void set (T* w) {
/** Set the window and maybe set it up. To be used after initial window creation */
void set (T* w, bool s = true) {
_window = w;
setup ();
if (s) {
setup ();
}
}
private: