Avoid calls to Glib::ustring << operator at all cost.

Glib::operator<<(std::ostream&, Glib::ustring const&) involves
loadlocale which is not thread-safe on OSX.

This fixes various seemingly random crashes on OSX.
This commit is contained in:
Robin Gareus 2015-10-14 22:39:46 +02:00
parent 5eefdf7536
commit 8b80fe04ad
8 changed files with 21 additions and 21 deletions

View file

@ -1041,7 +1041,7 @@ PortMatrix::update_tab_highlighting ()
label->set_text ((*j)->name);
} else if (c.length() && c[0] != '<' && has_connection) {
/* this label is not marked up with <b> but should be */
label->set_markup (string_compose ("<b>%1</b>", Glib::Markup::escape_text ((*j)->name)));
label->set_markup (string_compose ("<b>%1</b>", Glib::Markup::escape_text ((*j)->name).c_str()));
}
++p;