summaryrefslogtreecommitdiff
path: root/gtk2_ardour/audio_clock.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2014-12-22 13:39:41 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2014-12-22 13:39:46 -0500
commit64fa63212f7e79bab16147817211a33a3f7c8fba (patch)
tree54721a2dbd50611e7e5047e818ddfab2b67309dc /gtk2_ardour/audio_clock.cc
parent795c5c16f17867bb55b724abfe99bc9200184305 (diff)
move all (G)UI related configuration parameters into UIConfiguration, not RCConfiguration
Diffstat (limited to 'gtk2_ardour/audio_clock.cc')
-rw-r--r--gtk2_ardour/audio_clock.cc16
1 files changed, 5 insertions, 11 deletions
diff --git a/gtk2_ardour/audio_clock.cc b/gtk2_ardour/audio_clock.cc
index b6c2040792..7d6dd3cfcd 100644
--- a/gtk2_ardour/audio_clock.cc
+++ b/gtk2_ardour/audio_clock.cc
@@ -153,25 +153,18 @@ AudioClock::on_realize ()
first_width = req.width;
first_height = req.height;
- set_font ();
+ // XXX FIX ME: define font based on ... ???
+ // set_font ();
set_colors ();
}
void
-AudioClock::set_font ()
+AudioClock::set_font (Pango::FontDescription font)
{
Glib::RefPtr<Gtk::Style> style = get_style ();
- Pango::FontDescription font;
Pango::AttrFontDesc* font_attr;
- if (!is_realized()) {
- font = get_font_for_style (get_name());
- } else {
- font = style->get_font();
- }
-
font_size = font.get_size();
-
font_attr = new Pango::AttrFontDesc (Pango::Attribute::create_attr_font_desc (font));
normal_attributes.change (*font_attr);
@@ -2198,7 +2191,8 @@ AudioClock::on_style_changed (const Glib::RefPtr<Gtk::Style>& old_style)
Gtk::Requisition req;
set_clock_dimensions (req);
- set_font ();
+ /* XXXX fix me ... we shouldn't be using GTK styles anyway */
+ // set_font ();
set_colors ();
}