mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-26 23:18:20 +01:00
prepare better solution of Glib's << operator
This commit is contained in:
parent
8b80fe04ad
commit
79142a262e
2 changed files with 15 additions and 0 deletions
|
|
@ -161,6 +161,15 @@ namespace Gtkmm2ext {
|
|||
|
||||
LIBGTKMM2EXT_API void convert_bgra_to_rgba (guint8 const *, guint8 * dst, int, int);
|
||||
LIBGTKMM2EXT_API const char* event_type_string (int event_type);
|
||||
|
||||
/* glibmm ustring workaround
|
||||
*
|
||||
* Glib::operator<<(std::ostream&, Glib::ustring const&) internally calls
|
||||
* g_locale_from_utf8() which uses loadlocale which is not thread-safe on OSX
|
||||
*
|
||||
* use a std::string
|
||||
*/
|
||||
LIBGTKMM2EXT_API std::string markup_escape_text (std::string const& s);
|
||||
};
|
||||
|
||||
#endif /* __gtkmm2ext_utils_h__ */
|
||||
|
|
|
|||
|
|
@ -967,3 +967,9 @@ Gtkmm2ext::event_type_string (int event_type)
|
|||
|
||||
return "unknown";
|
||||
}
|
||||
|
||||
std::string
|
||||
Gtkmm2ext::markup_escape_text (std::string const& s)
|
||||
{
|
||||
return Glib::Markup::escape_text (s);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue