diff options
Diffstat (limited to 'gtk2_ardour/utils.cc')
-rw-r--r-- | gtk2_ardour/utils.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk2_ardour/utils.cc b/gtk2_ardour/utils.cc index 96bee1a87b..b8594b7b2f 100644 --- a/gtk2_ardour/utils.cc +++ b/gtk2_ardour/utils.cc @@ -36,6 +36,7 @@ #include <gtkmm/label.h> #include <gtkmm/paned.h> #include <gtk/gtkpaned.h> +#include <boost/algorithm/string.hpp> #include "pbd/file_utils.h" @@ -680,6 +681,16 @@ escape_underscores (string const & s) return o; } +/** Replace < and > with < and > respectively to make < > display correctly in markup strings */ +string +escape_angled_brackets (string const & s) +{ + string o = s; + boost::replace_all (o, "<", "<"); + boost::replace_all (o, ">", ">"); + return o; +} + Gdk::Color unique_random_color (list<Gdk::Color>& used_colors) { |