summaryrefslogtreecommitdiff
path: root/gtk2_ardour/marker.cc
diff options
context:
space:
mode:
authorDoug McLain <doug@nostar.net>2008-07-15 06:11:52 +0000
committerDoug McLain <doug@nostar.net>2008-07-15 06:11:52 +0000
commit1ba9658885ca64308d091c7d04a7d004addc239f (patch)
tree6419d37cab6492ebe6901483ccb1344749a7b9fa /gtk2_ardour/marker.cc
parent515546ee99ae71053716959afc0d9c34e5e7ae48 (diff)
Add some debug for Marker's font settings, and set the Text's font before setting it's text
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3609 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/marker.cc')
-rw-r--r--gtk2_ardour/marker.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/marker.cc b/gtk2_ardour/marker.cc
index e654461899..98a2d76dd6 100644
--- a/gtk2_ardour/marker.cc
+++ b/gtk2_ardour/marker.cc
@@ -34,6 +34,7 @@ Marker::Marker (PublicEditor& ed, ArdourCanvas::Group& parent, guint32 rgba, con
: editor (ed), _parent(&parent), _type(type)
{
+ cerr << "Marker() constructed";//DEBUG
double label_offset = 0;
bool annotate_left = false;
@@ -243,10 +244,10 @@ Marker::Marker (PublicEditor& ed, ArdourCanvas::Group& parent, guint32 rgba, con
mark->property_outline_color_rgba() = rgba;
mark->property_width_pixels() = 1;
Pango::FontDescription* font = get_font_for_style (N_("MarkerText"));
-
+ cerr << " font->get_size() = " << font->get_size() << " family = " << font->get_family() << endl;
text = new Text (*group);
- text->property_text() = annotation.c_str();
text->property_font_desc() = *font;
+ text->property_text() = annotation.c_str();
delete font;