diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-06-11 22:58:55 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-06-11 22:58:55 +0000 |
commit | c81691741118ab34c5f6f458c2d84f431e481ada (patch) | |
tree | 0cef6f8ca9b91cf4458fd4bbe9996bdb16870cea /gtk2_ardour/canvas-flag.cc | |
parent | 24a268876588ad68490a2ed4146559eb4e434073 (diff) |
make canvas flag use NoEventText for its label, and try to set the font (unsuccessfully, it seems) to the same TimeAxisViewItem::NAME_FONT
git-svn-id: svn://localhost/ardour2/branches/3.0@12664 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/canvas-flag.cc')
-rw-r--r-- | gtk2_ardour/canvas-flag.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk2_ardour/canvas-flag.cc b/gtk2_ardour/canvas-flag.cc index 30299641ed..17fe6cabd9 100644 --- a/gtk2_ardour/canvas-flag.cc +++ b/gtk2_ardour/canvas-flag.cc @@ -1,6 +1,8 @@ -#include "canvas-flag.h" #include <iostream> + #include "ardour_ui.h" +#include "canvas-flag.h" +#include "time_axis_view_item.h" using namespace Gnome::Canvas; using namespace std; @@ -43,9 +45,10 @@ CanvasFlag::set_text(const string& a_text) { delete_allocated_objects(); - _text = new Text (*this, 0.0, 0.0, a_text); + _text = new NoEventText (*this, 0.0, 0.0, a_text); _text->property_justification() = Gtk::JUSTIFY_CENTER; _text->property_fill_color_rgba() = _outline_color_rgba; + _text->property_font_desc() = TimeAxisViewItem::NAME_FONT; double flagwidth = _text->property_text_width() + 10.0; double flagheight = _text->property_text_height() + 3.0; _text->property_x() = flagwidth / 2.0; |