From 83f385d26336f58c1b2e3ce49c609fe86878b56d Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 2 Jun 2011 17:50:37 +0000 Subject: audio clock switchover part2: remove most egregious include-time dependency on audio_clock.h, and alter API for a few utilities along the way git-svn-id: svn://localhost/ardour2/branches/3.0@9673 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/marker.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour/marker.cc') diff --git a/gtk2_ardour/marker.cc b/gtk2_ardour/marker.cc index 5b7ae840fd..351267af54 100644 --- a/gtk2_ardour/marker.cc +++ b/gtk2_ardour/marker.cc @@ -255,7 +255,7 @@ Marker::Marker (PublicEditor& ed, ArdourCanvas::Group& parent, guint32 rgba, con Glib::RefPtr layout = foo.create_pango_layout (X_("Hg")); /* ascender + descender */ int width; - layout->set_font_description (*name_font); + layout->set_font_description (name_font); Gtkmm2ext::get_ink_pixel_size (layout, width, name_height); name_pixbuf = new ArdourCanvas::Pixbuf(*group); @@ -380,7 +380,7 @@ Marker::setup_name_display () } /* Work out how wide the name can be */ - int name_width = min ((double) pixel_width (_name, *name_font) + 2, limit); + int name_width = min ((double) pixel_width (_name, name_font) + 2, limit); if (name_width == 0) { name_width = 1; } -- cgit v1.2.3