summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-08-18 14:16:44 +0000
committerCarl Hetherington <carl@carlh.net>2010-08-18 14:16:44 +0000
commit6832155310c5de60ea6774f67dfc5787b592e75e (patch)
treeed7fac2b41ba7b341c764e567cc5634ec88f9232
parent8d9c88f48fba1b73301880120ff123d0c1e9338a (diff)
Fix font sizing in the big clock.
git-svn-id: svn://localhost/ardour2/branches/3.0@7650 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--gtk2_ardour/ardour_ui_ed.cc4
-rwxr-xr-xgtk2_ardour/window_proxy.cc1
-rwxr-xr-xgtk2_ardour/window_proxy.h8
3 files changed, 8 insertions, 5 deletions
diff --git a/gtk2_ardour/ardour_ui_ed.cc b/gtk2_ardour/ardour_ui_ed.cc
index 7ebd89d7cd..a0d5330e6e 100644
--- a/gtk2_ardour/ardour_ui_ed.cc
+++ b/gtk2_ardour/ardour_ui_ed.cc
@@ -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
diff --git a/gtk2_ardour/window_proxy.cc b/gtk2_ardour/window_proxy.cc
index b6f7508ad2..c37fd0e043 100755
--- a/gtk2_ardour/window_proxy.cc
+++ b/gtk2_ardour/window_proxy.cc
@@ -82,7 +82,6 @@ WindowProxyBase::maybe_show ()
{
if (_visible) {
show ();
- setup ();
}
}
diff --git a/gtk2_ardour/window_proxy.h b/gtk2_ardour/window_proxy.h
index ac102baa4d..58a67eb391 100755
--- a/gtk2_ardour/window_proxy.h
+++ b/gtk2_ardour/window_proxy.h
@@ -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: