summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_canvas.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-07-03 21:02:29 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-07-03 21:02:29 +0000
commit9decb3e027b402438471f357d5a17f4c5190a039 (patch)
treeaef074cdfe656708cebd622941a55c5f9ad91f70 /gtk2_ardour/editor_canvas.cc
parent133a66920bbdd3bc11bd4ae866048b0f1f52ecd4 (diff)
remove static Pango::FontDescriptions, they cause glib errors because of initialization before Glib::thread_init() has been called
git-svn-id: svn://localhost/ardour2/trunk@2100 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/editor_canvas.cc')
-rw-r--r--gtk2_ardour/editor_canvas.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk2_ardour/editor_canvas.cc b/gtk2_ardour/editor_canvas.cc
index 243fe6a12b..55a8c47b01 100644
--- a/gtk2_ardour/editor_canvas.cc
+++ b/gtk2_ardour/editor_canvas.cc
@@ -133,12 +133,14 @@ Editor::initialize_canvas ()
/* stuff for the verbose canvas cursor */
- Pango::FontDescription font = get_font_for_style (N_("VerboseCanvasCursor"));
+ Pango::FontDescription* font = get_font_for_style (N_("VerboseCanvasCursor"));
verbose_canvas_cursor = new ArdourCanvas::Text (*track_canvas.root());
- verbose_canvas_cursor->property_font_desc() = font;
+ verbose_canvas_cursor->property_font_desc() = *font;
verbose_canvas_cursor->property_anchor() = ANCHOR_NW;
+ delete font;
+
verbose_cursor_visible = false;
/* a group to hold time (measure) lines */