diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2007-07-03 20:56:33 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2007-07-03 20:56:33 +0000 |
commit | 3e70b965971ca2b08dad5f76c58f5d13ebc20a2c (patch) | |
tree | c9775d3ca39acadb28daaa39156a3b15c2230591 /gtk2_ardour/utils.cc | |
parent | 3239d42bdfa5278bce3b9eeab3cb3f20426cd685 (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/branches/2.0-ongoing@2099 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/utils.cc')
-rw-r--r-- | gtk2_ardour/utils.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/utils.cc b/gtk2_ardour/utils.cc index d574ece427..51d60bc998 100644 --- a/gtk2_ardour/utils.cc +++ b/gtk2_ardour/utils.cc @@ -234,7 +234,7 @@ get_canvas_points (string who, uint32_t npoints) return new ArdourCanvas::Points (npoints); } -Pango::FontDescription +Pango::FontDescription* get_font_for_style (string widgetname) { Gtk::Window window (WINDOW_TOPLEVEL); @@ -257,10 +257,10 @@ get_font_for_style (string widgetname) PangoContext* ctxt = (PangoContext*) pango_layout_get_context ((PangoLayout*) layout->gobj()); pfd = pango_context_get_font_description (ctxt); - return Pango::FontDescription (pfd, true); /* make a copy */ + return new Pango::FontDescription (pfd, true); /* make a copy */ } - return Pango::FontDescription (pfd, true); /* make a copy */ + return new Pango::FontDescription (pfd, true); /* make a copy */ } uint32_t |